You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Migration guide to platform pay when upgrading to release >v.8.0
4
+
---
5
+
6
+
# `isApplePaySupported` and `isGooglePaySupported`
7
+
8
+
`isApplePaySupported` and `isGooglePaySupported` have both been replaced by `isPlatformPaySupported`.
9
+
10
+
`isPlatformPaySupported` requires no parameters, but you _can_ optionally pass in the same parameters in the old method.
11
+
12
+
```diff
13
+
- isGooglePaySupported(myParams);
14
+
+ isPlatformPaySupported({googlePay: myParams});
15
+
```
16
+
17
+
# `presentApplePay`, `confirmApplePayPayment`, `initGooglePay`, `presentGooglePay`, and `createGooglePayPaymentMethod`
18
+
19
+
`presentApplePay`, `confirmApplePayPayment`, `isGooglePaySupported`, `presentGooglePay`, and `createGooglePayPaymentMethod` have been replaced with:
20
+
21
+
-`confirmPlatformPaySetupIntent` if you use platform pay to confirm setupintent.
22
+
-`confirmPlatformPayPayment` if you use platform pay to confirm payment intent
23
+
-`createPlatformPayPaymentMethod` if you were use platformpay to create a payment method (this was not possible previously with Apple Pay).
24
+
25
+
# `updateApplePaySummaryItems`
26
+
27
+
`updateApplePaySummaryItems` has been replaced with `updatePlatformPaySheet`.
28
+
29
+
`updatePlatformPaySheet` accepts an parameter `applePay`. When using this, you can pass an object containing your `summaryItems`, `shippingMethods`, and `errors` to be displayed in the Apple Pay sheet to your customer.
30
+
31
+
# `<GooglePayButton />` and `<ApplePayButton />`
32
+
33
+
The `GooglePayButton` and `ApplePayButton` components have been replaced with `PlatformPayButton`.
0 commit comments