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

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
@@ -394,6 +394,8 @@ All General and Custom configuration options that are accepted by [PaystackPop.n
394
394
  | loadPaystackCheckoutButton | False | `String` | ID of button to open checkout form |
395
395
  | styles | False | `Object` | Layout and button styling. See [Styling Options](#styling-options) |
396
396
 
397
+ If `channels` includes `google_pay` but not `card`, `card` is added automatically. Passing `card` yourself is harmless. `apple_pay` does not trigger this, so include `card` alongside `apple_pay` if you want card payment available as a fallback.
398
+
397
399
  ### Styling Options
398
400
 
399
401
  | Option | Type | Default | Description |
@@ -467,7 +469,7 @@ async function loadPaymentRequestButtons() {
467
469
  email: 'testuser@paystack.com',
468
470
  amount: 10000,
469
471
  currency: "NGN",
470
- // pass card alongside the wallets: google_pay needs it, apple_pay falls back to it
472
+ // pass card alongside apple_pay as a fallback; card is added automatically when google_pay is present
471
473
  channels: ["card", "apple_pay", "google_pay"],
472
474
  container: 'payment-request-buttons',
473
475
  loadPaystackCheckoutButton: 'pay-button',