Create a Payment MethodAsk AIpost https://api-dev.prolifepayments.com/payments/v1/setup-requestsBody ParamscustomerstringrequiredThe customer ID that the paymentToken or paymentMethod belongs to. If both the paymentToken and the setupFutureUsage fields are provided, the customer will be attached to the paymentMethod.paymentTokenstringrequiredThe Payment Token received from the Pro-Life Payments.js SDK.usagestringenumrequiredSpecifies the intended use of the created payment method.on_sessionoff_sessionAllowed:on_sessionoff_sessiondescriptionstringA description for the Setup Request.motobooleanSet to true when the customer provides their payment method offline.truefalsepaymentMethodobjectThe ID of the payment method associated with the Customer used in this PaymentRequest.paymentMethod objectHeadersidempotencyKeystringA unique identifier to ensure the same operation isn't processed multiple times, preventing duplicate transactions.onBehalfOfstringSpecifies the account for which the Setup Request is intended. This is used for scenarios where one partner processes payments on behalf of another partner, such as in PayFac or related partner relationships.Responses 200200 400400Updated 6 months ago