Are you looking for test card numbers?

Would you like to contact support?

Payment-method icon

GrabPay iOS Component

Add GrabPay to your iOS Components integration.

On this page, you can find additional configuration for adding GrabPay to your Components integration.

Before you begin

This page assumes you have already:

To make a GrabPay PayLater payment, you also need to collect and send additional information:

  • The delivery address.
  • Information about the purchased items.

API reference

Collecting and sending additional information is only needed for GrabPay PayLater payments. However, we highly recommend you do the same in your initial integration for GrabPay Wallet because it will help save development resources if you plan to enable GrabPay PayLater afterwards.

To make a GrabPay PayLater payment, either postpaid or installment, you need to send additional fields. Select which endpoint you're integrating:

This is the default with Web Components v5.0.0 or later.

Parameter name Required Description
deliveryAddress -white_check_mark- The address where the purchased goods should be delivered, including the country, city, street, house number, and postal code.
lineItems -white_check_mark- Price and product information about the purchased items, to be included on the invoice sent to the shopper.

Component configuration

If your integration uses iOS Components v5.0.0 or later, configure and create an instance of the GrabPay Component:

//Create a payment method object for GrabPay.
let paymentMethod = paymentMethods.paymentMethod(ofType: grabpay_SGComponentPaymentMethod.self)
//Create a configuration object for the GrabPay Component.
var grabpay_SGComponentConfiguration = grabpay_SGComponent.Configuration()
//Set additional parameters on the configuration object.
grabpay_SGComponentConfiguration.localizationParameters = //Optional custom localization parameters.

There is no required GrabPay-specific integration for Components.

Test and go live

To test your GrabPay integration:

  1. Contact our Support Team to register for a GrabPay test wallet. You'll need to fill out a form and provide a phone number (local or international) and an email address. Note that the wallet will have a balance limit depending on the wallet regulations in each market.
  2. In the simulator, log in to Grab with the phone number you registered, and specify the one-time password you receive on that phone number.

Check the status of the GrabPay test payments in your Customer Area > Transactions > Payments.

Before you can accept live GrabPay payments, you need to submit a request for GrabPay in your live Customer Area.

See also