SDK reference · Rails
ap2OpenPaymentToProvenance
ap2OpenPaymentToProvenance in @provenanceauth/rails/ap2, Rails. Open Payment Mandate content → the Provenance mandate fields it expresses.
Signature
ap2OpenPaymentToProvenance(content: Ap2OpenPaymentMandate): { constraints: ProvenanceMandateConstraints; currency: string | null; mandate_token: string | null; checkout_reference: string | null; unresolved: string[]; }Parameters
contentAp2OpenPaymentMandateRequired
Returns
{ constraints: ProvenanceMandateConstraints; currency: string | null; mandate_token: string | null; checkout_reference: string | null; unresolved: string[]; }
HTTP operation
Runs locally, with no request to the API.