If you are using Android Components v5.0.0 or later:
This payment method requires no additional configuration.
Follow the Components integration guide and use the following module and Component names:
- To import the module: instant
- To launch and show the Component: InstantPaymentComponent
This page explains how to add PayPay to your existing Android Components integration.
Requirements
Requirement | Description |
---|---|
Integration type | Make sure that you have built your Components integration. |
Setup steps | Before you begin, contact our Support Team to add PayPay to your Customer Area. You cannot accept live payments until PayPay is in your Customer Area |
API reference
When you make the /sessions
request, no additional fields are required for PayPay.
Import the library
With Jetpack Compose
implementation "com.adyen.checkout:instant:YOUR_VERSION" implementation "com.adyen.checkout:components-compose:YOUR_VERSION"
Without Jetpack Compose
implementation "com.adyen.checkout:instant:YOUR_VERSION"
Component Configuration
No specific configuration is required for PayPay.
Create a payment session
Create a payment session with the payment information for the shopper, as described in the Android Components integration guide.
Launch and show the Component
Follow the steps in the the Android Components integration guide to launch and show the Component for PayNow.
With Jetpack Compose
Component import com.adyen.checkout.components.compose.get // Get the payment method. val paymentMethod = checkoutSession.getPaymentMethod(PaymentMethodTypes.paypay) @Composable private fun ComposableInstantComponent() { // Keep a reference to this Component in case you need to access it later. val instantPaymentComponent = InstantPaymentComponent.PROVIDER.get( checkoutSession = checkoutSession, paymentMethod = paymentMethod, configuration = configuration, componentCallback = callback, // This key is required to ensure a new Component gets created for each different screen or payment session. // Generate a new value for this key every time you need to reset the Component. key = "YOUR_UNIQUE_KEY_FOR_THIS_COMPONENT", ) // This is your composable, a wrapper around our xml view. AdyenComponent( component = instantPaymentComponent, modifier = YOUR_MODIFIER, )
Without Jetpack Compose
<com.adyen.checkout.ui.core.AdyenComponentView android:id="@+id/YOUR_COMPONENT_VIEW_ID" .../> // Get the payment method. val paymentMethod = checkoutSession.getPaymentMethod(PaymentMethodTypes.paypay) val instantPaymentComponent = InstantPaymentComponent.PROVIDER.get( activity, // Your activity or fragment. checkoutSession, paymentMethod, cardConfiguration, componentCallback, ) binding.componentView.attach(instantPaymentComponent, viewLifecycleOwner)