createSession
Allows creating a CheckoutSession from the response of the /sessions endpoint. This is a suspend function that executes a network call on the IO thread.
Return
The result of the API call.
Parameters
The deserialized JSON response of the /sessions API call. You can use SessionModel.SERIALIZER to deserialize this JSON.
A Configuration to initialize the session. You can use the same configuration required to initialize Drop-in or a component.
An Order in case of an ongoing partial payment flow.
Allows creating a CheckoutSession from the response of the /sessions endpoint. This is a suspend function that executes a network call on the IO thread.
Return
The result of the API call.
Parameters
The deserialized JSON response of the /sessions API call. You can use SessionModel.SERIALIZER to deserialize this JSON.
The Environment to be used for internal network calls from the SDK to Adyen.
Your Client Key used for internal network calls from the SDK to Adyen.
An Order in case of an ongoing partial payment flow.
Only to be used for initializing a component for partial payment flow.
Allows creating a CheckoutSession from the response of the /sessions endpoint. This is a suspend function that executes a network call on the IO thread.
Return
The result of the API call.
Parameters
The SessionPaymentResult object to initialize the session. You will get this object via com.adyen.checkout.giftcard.SessionsGiftCardComponentCallback.onPartialPayment callback after a partial payment has been done.
A Configuration to initialize the session. You can use the same configuration required to initialize Drop-in or a component.
Only to be used for initializing a component for partial payment flow.
Allows creating a CheckoutSession from the response of the /sessions endpoint. This is a suspend function that executes a network call on the IO thread.
Return
The result of the API call.
Parameters
The SessionPaymentResult object to initialize the session. You will get this object via com.adyen.checkout.giftcard.SessionsGiftCardComponentCallback.onPartialPayment callback after a partial payment has been done.
The Environment to be used for internal network calls from the SDK to Adyen.
Your Client Key used for internal network calls from the SDK to Adyen.