Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 1.18 KB

BreakingChange.md

File metadata and controls

23 lines (18 loc) · 1.18 KB

Breaking changes

The charge validation feature has been moved their different specialised classes RaveAccountChargeValidation and RaveCardChargeValidation

And to they are used like so:

var raveConfig = new RavePayConfig(TestConsts.recurringPbKey, TestConsts.recurringScKey, false);
var cardValidation = new RaveCardChargeValidation(raveConfig);
var val = cardValidation.ValidateCharge(new CardValidateChargeParams(TestConsts.recurringPbKey, txRef, "12345")).Result;
// You can query their results now
Trace.WriteLine($"Status: {val.Status}"); // Should be "success"
Trace.WriteLine($"Message: {val.Message}");

Also every card charge validation request now returns a token. This token can be used to charge the card subsequently without using the full card details.

Trace.WriteLine(val.Data.TX.CardChargeToken.EmbedToken));
Trace.WriteLine(val.Data.TX.CardChargeToken.UserToken));