On this page, you can find additional configuration for adding Benefit to your Components integration.
Before you begin
This page assumes you have already:
API reference
You don't need to send additional fields for Benefit. To see optional fields that you can send for all payment methods, choose the endpoint you integrated:
- /sessions: This is the default with Components v5.0.0 or later.
- /payments: If you implemented an additional use case.
Component configuration
If your integration uses iOS Components v5.0.0 or later, configure and create an instance of the Benefit Component:
//Create a payment method object for Benefit.
let paymentMethod = paymentMethods.paymentMethod(ofType: benefitComponentPaymentMethod.self)
//Create a configuration object for the Benefit Component.
var benefitComponentConfiguration = benefitComponent.Configuration()
//Set additional parameters on the configuration object.
benefitComponentConfiguration.localizationParameters = //Optional custom localization parameters.
There is no required Benefit-specific integration for Components.
Test and go live
To test Benefit payments, use the test card details provided by Tap.
Before you can accept live Benefit payments, you need to submit a request for Benefit in your live Customer Area.