You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -86,7 +86,7 @@ You can choose to initialize the payment locally or via your backend.
86
86
on your backend.
87
87
88
88
1.b If everything goes well, the initialization request returns a response with an `access_code`.
89
-
You can then create a `Charge` object with the access code and card details. The `charge` is in turn passed to the ` PaystackPlugin.chargeCard()` function for payment:
89
+
You can then create a `Charge` object with the access code and card details. The `charge` is in turn passed to the `plugin.chargeCard()` function for payment:
90
90
91
91
```dart
92
92
PaymentCard _getCardFromUI() {
@@ -104,7 +104,7 @@ You can then create a `Charge` object with the access code and card details. The
104
104
..accessCode = accessCode
105
105
..card = _getCardFromUI();
106
106
107
-
final response = await PaystackPlugin.chargeCard(context, charge: charge);
107
+
final response = await plugin.chargeCard(context, charge: charge);
108
108
// Use the response
109
109
}
110
110
```
@@ -115,7 +115,7 @@ for more information.
115
115
116
116
117
117
#### 2. Initialize Locally
118
-
Just send the payment details to `PaystackPlugin.chargeCard`
118
+
Just send the payment details to `plugin.chargeCard`
119
119
```dart
120
120
// Set transaction params directly in app (note that these params
121
121
// are only used if an access_code is not set. In debug mode,
0 commit comments