@payos-inc/payos-react 1.2.0-staging.91 → 1.2.0-staging.92
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.
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CheckoutSession } from '../types/session';
|
|
2
|
+
/**
|
|
3
|
+
* Make sure the payment intent has a card before agent-mode authentication.
|
|
4
|
+
*
|
|
5
|
+
* The default card is auto-selected for display only (see selectCard.ts), so
|
|
6
|
+
* a returning person who taps Authorize without picking a card leaves the
|
|
7
|
+
* intent with no selectedCardId, and passkey authentication rejects it.
|
|
8
|
+
* Attach the displayed card in that case. Returns false when attaching failed.
|
|
9
|
+
*/
|
|
10
|
+
export declare function ensureSelectedCardAttached(session: Pick<CheckoutSession, 'selectedCard' | 'paymentIntent'>, attachCard: (cardId: string) => Promise<boolean>): Promise<boolean>;
|
package/package.json
CHANGED