On this page, you can find additional configuration for adding Benefit to your Components integration.
Before you begin
This page assumes you've already:
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 advanced use case, or integrated Components before v5.0.0.
There is no required Benefit specific integration for Components.
//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.