Skip to content

Commit 7d86c4e

Browse files
Merge pull request #113 from PaystackOSS/patch/fix-apple-pay-typo
Fix typo in init object for Apple Pay payment request
2 parents d305bd7 + e8f5c3a commit 7d86c4e

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

dist/doc/payments/apple-pay/payment-request.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ await paystackPop.paymentRequest({
77
currency: 'NGN', // Use NGN for Naira or USD for US Dollars
88
ref: 'YOUR_REFERENCE', // Replace with a reference you generated
99
container: 'paystack-apple-pay', // ID of div to mount payment button elements
10-
loadPaystackCheckButton: 'paystack-other-channels', // ID of button to trigger opening Paystack checkout (optional)
10+
loadPaystackCheckoutButton: 'paystack-other-channels', // ID of button to trigger opening Paystack checkout (optional)
1111
style: {
1212
theme: 'dark', // 'light' or 'dark'
1313
applePay: {
@@ -31,6 +31,7 @@ await paystackPop.paymentRequest({
3131
onElementsMount(elements) { // { applePay: true } or null
3232
3333
}
34-
});`
34+
});
35+
`
3536

3637
export {js}

src/doc/payments/apple-pay/payment-request/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ await paystackPop.paymentRequest({
77
currency: 'NGN', // Use NGN for Naira or USD for US Dollars
88
ref: 'YOUR_REFERENCE', // Replace with a reference you generated
99
container: 'paystack-apple-pay', // ID of div to mount payment button elements
10-
loadPaystackCheckButton: 'paystack-other-channels', // ID of button to trigger opening Paystack checkout (optional)
10+
loadPaystackCheckoutButton: 'paystack-other-channels', // ID of button to trigger opening Paystack checkout (optional)
1111
style: {
1212
theme: 'dark', // 'light' or 'dark'
1313
applePay: {
@@ -31,4 +31,4 @@ await paystackPop.paymentRequest({
3131
onElementsMount(elements) { // { applePay: true } or null
3232

3333
}
34-
});
34+
});

0 commit comments

Comments
 (0)