Skip to content

Commit 7f88c7c

Browse files
authored
🤖 Merge PR DefinitelyTyped#73980 [googlepay] add new button checkout option 'CONTINUE_TO_REVIEW' by @dmengelt
1 parent 304aac4 commit 7f88c7c

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

‎types/googlepay/googlepay-tests.ts‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ const allowedPaymentMethods = new Array<google.payments.api.PaymentMethodSpecifi
2626
},
2727
});
2828

29+
const checkoutOptions = new Array<google.payments.api.CheckoutOption>(
30+
"DEFAULT",
31+
"COMPLETE_IMMEDIATE_PURCHASE",
32+
"CONTINUE_TO_REVIEW",
33+
);
34+
2935
// @ts-expect-error
3036
allowedPaymentMethods[0].tokenizationSpecification = {
3137
type: "DIRECT",

‎types/googlepay/index.d.ts‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1623,8 +1623,13 @@ declare namespace google.payments.api {
16231623
* [[TransactionInfo.totalPriceStatus|`TransactionInfo.totalPriceStatus`]]
16241624
* is set to [[TotalPriceStatus|`FINAL`]]. Otherwise,
16251625
* a payment data request will fail.
1626+
*
1627+
* - `CONTINUE_TO_REVIEW`:
1628+
* Use the 'Continue to Review Order' button for a buy flow in the
1629+
* payments sheet. Once loadPaymentData completes, the integrator should
1630+
* show an order confirmation screen to finalize the purchase.
16261631
*/
1627-
type CheckoutOption = "DEFAULT" | "COMPLETE_IMMEDIATE_PURCHASE";
1632+
type CheckoutOption = "DEFAULT" | "COMPLETE_IMMEDIATE_PURCHASE" | "CONTINUE_TO_REVIEW";
16281633

16291634
/**
16301635
* Enum string of a display item.

0 commit comments

Comments
 (0)