Payment-method icon

PayBright Drop-in integration

Add PayBright to an existing Drop-in integration.

PayBright has been acquired by Affirm. Adyen will not accept new PayBright integrations.

Our Android Drop-in renders PayBright in your payment form, and redirects the shopper to complete the payment. As with other redirect payment methods, you need to check the payment result after the shopper returns to your app.

When making an PayBright payment, you also need to:

  1. Collect shopper details, and specify these in your payment request. PayBright uses these for risk checks.
  2. Provide information about the purchased items by specifying lineItems in your payment request.
  3. Handle the redirect result after the shopper returns to your website.

Requirements

Requirement Description
Integration type Make sure that you have built an Advanced flow Android Drop-in integration.
Setup steps Before you begin, add PayBright in your Customer Area.

Show PayBright in your payment form

Drop-in uses the countryCode and the amount.currency from your /paymentMethods request to show the available payment methods to your shopper.

To show PayBright in your payment form, specify in your /paymentMethods request:

When the shopper proceeds to pay, Drop-in returns the paymentComponentData.paymentMethod. Pass the paymentComponentData.paymentMethod to your server — these are the shopper details that you need to make the payment.

Make a payment

  1. From your server, make a POST /payments request, specifying:

    • paymentMethod: The paymentComponentData.paymentMethod from your client app.
    • shopperName: The shopper's full name.
    • dateOfBirth: The shopper's date of birth.
    • shopperEmail: The shopper's email address.
    • telephoneNumber: The shopper's phone number.
    • shopperLocale
      Optional
      : A combination of language code and country code to define which language should be used in the PayBright checkout page.
    • countryCode: The shopper's country. For example, CA.
    • billingAddress: The postal address to be included on the invoice.
    • deliveryAddress: The postal address where the purchased items will be shipped.
    • lineItems: Price and product information about the purchased items.
    • returnUrl: URL to where the shopper should be redirected back to after they complete the payment. Get this URL from the Component in the RedirectComponent.getReturnUrl(context).