This guide provides step-by-step instructions for integrating Adyen Android Drop-in with spree_adyen using session flow and Drop-In component.
sessionData
- available as adyen_data
in payment_session API responseid
- available as adyen_id
in payment_session API responseCheckoutSessionProvider.createSession
passing serialized session data (sessionModel
) and dropInConfiguration
dropInConfiguration example:
environment
- enum: live
or test
clientKey
- client_key
from payment_sessions endpoint
shopperLocale
- shopper locale in ISO format
dropInLauncher
- The Drop-in launcher objectcheckoutSession
- result of CheckoutSessionProvider.createSession
dropInConfiguration
- Your Drop-in configurationpayment_session
to one of the following state
pending
- chosen payment method can take a while to completecompleted
- payment resulted in success, order completedcanceled
- payment canceled, payment is void
refused
- payment failed