SDK reference · Rails
provenanceMandateToAp2OpenPayment
provenanceMandateToAp2OpenPayment in @provenanceauth/rails/ap2, Rails. A Provenance mandate → open Payment Mandate CONTENT (mandate.payment.open.1), unsigned: the Shopping Agent hands it to its Trusted Surface to sign.
Signature
provenanceMandateToAp2OpenPayment(m: ProvenanceMandateView, opts: Ap2OpenPaymentOptions): { mandate: Ap2OpenPaymentMandate; not_mapped: string[] }Parameters
mProvenanceMandateViewRequiredoptsAp2OpenPaymentOptionsRequired
Returns
{ mandate: Ap2OpenPaymentMandate; not_mapped: string[] }
HTTP operation
Runs locally, with no request to the API.