If you are using Android Drop-in v5.0.0 or later:
This payment method requires no additional configuration.
Follow the Drop-in integration guide.
Our Android Drop-in renders GrabPay in your payment form, and redirects the shopper to GrabPay to complete the payment.
Requirements
Requirement | Description |
---|---|
Integration type | Make sure that you have an existing Advanced flow Android Drop-in integration. |
Setup steps | Before you begin, add GrabPay in your Customer Area. |
Show GrabPay 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 GrabPay in your payment form, specify in your /paymentMethods request:
Country/region | countryCode | amount.currency |
---|---|---|
Malaysia | MY | MYR |
Singapore | SG | SGD |
Philippines 1 | PH | PHP |
1 GrabPay PayLater is not available in Philippines.
The response contains the corresponding paymentMethod.type
grabpay_XX where XX is the country code.
Collect additional information in your payment form
Collecting additional information is only needed for GrabPay PayLater payments. However, we highly recommend collecting this information in your initial integration for GrabPay Wallet because it will help save development resources if you plan to enable GrabPay PayLater afterwards.
Collect the following details from the shopper:
- deliveryAddress: The address where the purchased goods should be delivered, including the country, city, street, house number, and postal code.
- lineItems: Price and product information about the purchased items, to be included on the invoice sent to the shopper.
Pass the collected data to your server because you will need it when making a payment. This information will be used by GrabPay to perform risk checks.
Make a payment
When the shopper proceeds to pay, Drop-in returns the paymentComponentData.paymentMethod
. Depending on the type of GrabPay payment, Wallet or PayLater, you need to provide different parameters in the /payments request.