Payment-method icon

PayPay Android Component integration

Add PayPay to an existing Components integration.

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:

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

Import the library with Compose
Expand view
Copy link to code block
Copy code
Copy code
implementation "com.adyen.checkout:instant:YOUR_VERSION"
implementation "com.adyen.checkout:components-compose:YOUR_VERSION"

Without Jetpack Compose

Import the library without Compose
Expand view
Copy link to code block
Copy code
Copy code
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

Launch the Component with Compose
Expand view
Copy link to code block
Copy code
Copy code
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

Launch the Component without Compose
Expand view
Copy link to code block
Copy code
Copy code
<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)

See also