Shopify SDK for Unity
Public Member Functions | List of all members
Shopify.Unity.SDK.INativeCheckout Interface Reference

Public Member Functions

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...
 

Member Function Documentation

◆ 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
paymentSettingsThe Shop's payment settings
callbackThe 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
paymentSettingsThe 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
keyThe public key that is used for encrypting a native payment's token data
shopMetadataThe shop's metadata containing name and payment settings
successThe closure that is invoked upon success of the payment
canceledThe closure that is invoked upon cancelation of the payment
failureThe 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: