File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ const checkoutApi = new CheckoutAPI(client);
113
113
};
114
114
115
115
// Step 5: Make the request
116
- checkoutAPI .payments (paymentRequest)
116
+ checkoutApi . PaymentsApi .payments (paymentRequest)
117
117
.then (paymentResponse => console .log (paymentResponse .pspReference ))
118
118
.catch (error => console .log (error));
119
119
```
@@ -182,7 +182,7 @@ Create a the request object. For example, for a request to the `/payments` endpo
182
182
Use the API object's method to make the request. For example, to make a request to the ` /payments ` endpoint using the ` CheckoutAPI ` object:
183
183
184
184
```
185
- checkoutAPI .payments(paymentRequest)
185
+ checkoutApi.PaymentsAPI .payments(paymentRequest)
186
186
.then(paymentResponse => console.log(paymentResponse.pspReference))
187
187
.catch(error => console.log(error));
188
188
```
@@ -225,7 +225,7 @@ Alternatively, you can use the `Types` included in this module for Typescript an
225
225
merchantAccount: " YOUR_MERCHANT_ACCOUNT"
226
226
};
227
227
const checkoutAPI = new CheckoutAPI (client );
228
- const paymentResponse : Types .checkout .PaymentResponse = await checkoutAPI .payments (paymentsRequest );
228
+ const paymentResponse : Types .checkout .PaymentResponse = await checkoutAPI .PaymentsAPI . payments (paymentsRequest );
229
229
console .log (paymentResponse .pspReference );
230
230
}
231
231
You can’t perform that action at this time.
0 commit comments