|
bool | CanShowPaymentSetup (PaymentSettings paymentSettings) |
| Check whether the device supports displaying a native wallet application to setup the user's payment card More...
|
|
void | ShowPaymentSetup () |
| Invokes a native method that will prompt the user to setup the user's payment card via the native wallet application More...
|
|
void | CanCheckout (PaymentSettings paymentSettings, CanCheckoutWithNativePayCallback callback) |
| Check whether the device supports making a native payment given the Shop's payment settings More...
|
|
void | Checkout (string key, ShopMetadata shopMetadata, CheckoutSuccessCallback success, CheckoutCancelCallback canceled, CheckoutFailureCallback failure) |
| Display the native payment sheet to perform a native payment More...
|
|
◆ CanCheckout()
void Shopify.Unity.SDK.INativeCheckout.CanCheckout |
( |
PaymentSettings |
paymentSettings, |
|
|
CanCheckoutWithNativePayCallback |
callback |
|
) |
| |
Check whether the device supports making a native payment given the Shop's payment settings
- Parameters
-
paymentSettings | The Shop's payment settings |
callback | The callback that will deliver the result to tha caller |
- Returns
- True if the device supports making a native payment
◆ CanShowPaymentSetup()
bool Shopify.Unity.SDK.INativeCheckout.CanShowPaymentSetup |
( |
PaymentSettings |
paymentSettings | ) |
|
Check whether the device supports displaying a native wallet application to setup the user's payment card
- Parameters
-
paymentSettings | The Shop's payment settings |
- Returns
- True if the device supports displaying a native wallet application
◆ Checkout()
void Shopify.Unity.SDK.INativeCheckout.Checkout |
( |
string |
key, |
|
|
ShopMetadata |
shopMetadata, |
|
|
CheckoutSuccessCallback |
success, |
|
|
CheckoutCancelCallback |
canceled, |
|
|
CheckoutFailureCallback |
failure |
|
) |
| |
Display the native payment sheet to perform a native payment
- Parameters
-
key | The public key that is used for encrypting a native payment's token data |
shopMetadata | The shop's metadata containing name and payment settings |
success | The closure that is invoked upon success of the payment |
canceled | The closure that is invoked upon cancelation of the payment |
failure | The closure that is invoked upon failure of the payment |
◆ ShowPaymentSetup()
void Shopify.Unity.SDK.INativeCheckout.ShowPaymentSetup |
( |
| ) |
|
Invokes a native method that will prompt the user to setup the user's payment card via the native wallet application
The documentation for this interface was generated from the following file:
- Assets/Shopify/Unity/SDK/INativeCheckout.cs