Integrate PayPal on your website or mobile application and fully customize your checkout experience using your own UI.
Parameter Name | Required | Description |
---|---|---|
currencyCode | ✓ | 3-letter currency code in ISO 4217 format, e.g. USD for US dollars |
order ↳ lineItems | ✓ | Details of the line items of the order |
order ↳ countryCode | ✓ | The country code of the user is required for PayPal. |
metadata ↳ paypal_custom_id | Primer’s direct integration to PayPal enables you send a custom ID to paypal to link your orders to a specific custom ID. | |
metadata ↳ paypal_invoice_id | Primer’s direct integration to PayPal enables you send a Invoice ID to paypal to link your orders to a specific invoice ID. | |
metadata ↳ paypal_client_metadata_id | ✓ | Required field if the Billing Agreement is being created. |
urlScheme
parameter when configuring the PrimerPaymentMethodOptions
object.Set up redirectsapplication(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool
is automatically called by iOS. Make sure to call Primer.shared.application...
to forward this information to the SDK so that Universal Checkout can continue the flow.metadata.paypal_client_metadata_id
in the Primer Client Session/Payment API.In order to vault PayPal accounts, pass the following data in the Client Session:Parameter Name | Required | Description |
---|---|---|
customerId | ✓ | A unique identifier for your customer |
PrimerSessionItent.VAULT
to make ask PayPal to be vaulted.PaymentInstrumentData
.