Skip to content

Commit

Permalink
Fixes: #2
Browse files Browse the repository at this point in the history
  • Loading branch information
wilburx9 committed Nov 1, 2019
1 parent 88a9545 commit 0263a38
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
8 changes: 3 additions & 5 deletions lib/src/dto/payload.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class Payload {
String redirectUrl;
String paymentType;

Payload.initFrmInitializer(RavePayInitializer i)
Payload.fromInitializer(RavePayInitializer i)
: this.amount = i.amount.toString(),
this.currency = i.currency,
this.country = i.country,
Expand All @@ -55,7 +55,8 @@ class Payload {
this.subAccounts = i.subAccounts,
this.redirectUrl = i.redirectUrl,
this.isPreAuth = i.isPreAuth,
this.pbfPubKey = i.publicKey;
this.pbfPubKey = i.publicKey,
this.paymentPlan = i.paymentPlan;

Payload(
{@required this.expiryMonth,
Expand Down Expand Up @@ -135,9 +136,6 @@ class Payload {
value: subAccounts == null || subAccounts.isEmpty
? null
: subAccounts.map((a) => a.toJson()).toList());

print("Json = $json");

return json;
}
}
1 change: 0 additions & 1 deletion lib/src/manager/card_transaction_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ class CardTransactionManager extends BaseTransactionManager {

if (message == RaveConstants.V_COMP) {
if (chargeResponseCode == "02") {
print("Suggested Auth = $suggestedAuth");
if (authModelUsed == RaveConstants.ACCESS_OTP) {
onOtpRequested(response.chargeResponseMessage);
return;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/ui/payment/pages/base_payment_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ abstract class BasePaymentPageState<T extends BasePaymentPage> extends State<T>

@override
void initState() {
payload = Payload.initFrmInitializer(initializer);
payload = Payload.fromInitializer(initializer);
if (!ValidatorUtils.isAmountValid(initializer.amount.toString())) {
_cameWithValidAmount = false;
_amountController = TextEditingController();
Expand Down

0 comments on commit 0263a38

Please sign in to comment.