@paystack/inline-js 2.26.0 → 2.27.0-dev.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -386,6 +386,8 @@ This method mounts wallet payment buttons e.g Apple Pay, Google Pay on a provid
386
386
 
387
387
  All General and Custom configuration options that are accepted by [PaystackPop.newTransaction](https://www.notion.so/Documentation-for-Paystack-Inline-d6e595c0277d413db73b9a0d81a9c16c)
388
388
 
389
+ `paymentRequest` automatically adds `card` to `channels` when `channels` includes `google_pay`, so you do not need to pass both. This overrides the `channels` note in `newTransaction`'s options. `newTransaction` and `checkout` do not do this, so with those methods `google_pay` must still be passed alongside `card`.
390
+
389
391
  ### Configuration Options
390
392
 
391
393
  | Option | Required | Type | Description |
@@ -438,6 +440,14 @@ number.
438
440
  | ---------------------------- | -------------------------------------------------------- | -----------------------------------|
439
441
  | onElementsMount | Called once mounting has finished for both wallets | `{ applePay: Boolean, googlePay: Boolean }`, or `null` if mounting failed |
440
442
 
443
+ ### Apple Pay availability
444
+
445
+ On a domain that is registered for Apple Pay with Paystack, the Apple Pay button also shows in browsers that do not have built-in Apple Pay. The customer pays by scanning a code with their iPhone.
446
+
447
+ On any other domain, the Apple Pay button shows only in Safari and in iOS in-app browsers.
448
+
449
+ When no Apple Pay button can be shown, `onElementsMount` reports `applePay` as `false`, or receives `null` if no wallet button mounted.
450
+
441
451
  ## Method Response
442
452
 
443
453
  This method returns a Promise which resolves to a [PopupTransaction Instance](#the-popuptransaction-object)
@@ -467,8 +477,7 @@ async function loadPaymentRequestButtons() {
467
477
  email: 'testuser@paystack.com',
468
478
  amount: 10000,
469
479
  currency: "NGN",
470
- // pass card alongside the wallets: google_pay needs it, apple_pay falls back to it
471
- channels: ["card", "apple_pay", "google_pay"],
480
+ channels: ["apple_pay", "google_pay"],
472
481
  container: 'payment-request-buttons',
473
482
  loadPaystackCheckoutButton: 'pay-button',
474
483
  styles: {