How does an AI agent actually pay, and who authorised it?

TL;DR

Difficulty: Advanced

When an agent buys, the cardholder is not at the till, yet the law still wants the payment authorised and, often, strongly authenticated.

  • Consent, authentication and the bank's approval are three different questions. The shop controls only the evidence and a clean payment request.
  • Agents pay with scoped credentials: card network agentic tokens, PSP tokens such as Stripe's shared payment tokens (one shop, one amount, one expiry) and signed AP2 mandates.
  • Whether an instruction approved on Monday authenticates a payment on Wednesday is not settled. Keep every 3D Secure challenge able to reach the person, never mislabel an agent purchase as merchant initiated, and store the mandate, the approved basket and the agent identity with a date to delete them.

An AI agent can buy your oak side table while its owner is in a meeting. This chapter explains how that payment is authorised and authenticated under UK and EU rules, how agentic tokens and mandates work from their own specifications, and what a Rails and Solidus shop must build and store, with one delegated £189 purchase worked through end to end.

The payment problem: the person paying is not at the till

Every online card payment rests on one quiet assumption: the person whose card it is sits in front of the checkout. They type the card number, their bank sends a prompt to their phone, they tap "approve", and the money moves. The law, the card schemes and every payment provider's fraud model are built around that moment.

An AI agent breaks the assumption. When a shopping assistant buys something for you, the person who owns the card may be asleep, in a meeting or on a train. The thing filling in the checkout is software. So two questions that used to have the same answer now have different ones. Who is paying? The cardholder. Who is at the till? A machine.

This chapter is about how that gap is being closed, in practice and in law. It explains the payment side of agentic commerce from the bottom up: what "authorised" means, what strong customer authentication is and when it applies, the new kinds of token that let an agent pay without ever seeing a card number, the mandates that record what a person actually agreed to, and what an independent shop on Ruby on Rails and Solidus has to store so that it can prove an agent order was genuine. If the protocols themselves are new to you, start with the protocols chapter of this series. This chapter goes one level down, into the money.

I use the same invented shop as the rest of the series. Wrenfield Home is an online homeware shop in Leeds (wrenfieldhome.example). Priya owns it, Callum is her developer and data engineer, and the shop runs on Ruby on Rails and Solidus with Stripe and PayPal as payment providers. The product in every example is the Hollin oak side table: solid oak, oiled, 450 x 450 x 550 mm, 9.5 kg, SKU WH-1042, £189 including VAT, free delivery over £60.

A word before we start. This chapter touches payment law in the UK and the EU. It is general information to help you ask the right questions, not legal advice for your business.

Example: one ordinary card payment, so we know what changes

Before any agent appears, here is what happens today when a person buys the table on wrenfieldhome.example. Five parties are involved.

  • The cardholder, an invented customer called Sam in York.
  • The issuer: Sam's bank, which gave him the card.
  • The merchant: Wrenfield Home.
  • The acquirer or payment service provider (PSP): Stripe, which accepts card payments for the shop.
  • The card scheme: Visa or Mastercard, which carries messages between acquirer and issuer.

Sam puts the table in his basket. The total is £189, because delivery is free over £60. Of that, £189 ÷ 1.2 = £157.50 is the price before VAT and £31.50 is VAT at 20%. He types his card details into Stripe's payment form, which is embedded in the Solidus checkout. Stripe sends an authorisation request for £189 to Sam's bank through the scheme. Sam's bank sends a prompt to its banking app, Sam approves it with his fingerprint, and the bank answers "approved". Solidus records a payment of £189 against the order, and the money arrives in Wrenfield's Stripe balance a few days later.

Every later step in this chapter is a variation on that sequence. Keep it in mind: an agent changes who types, who approves and what evidence exists, but the issuer still has to say yes.

Authorised and authenticated are two different questions

People use "authorised" loosely. In payments it hides three separate questions, and agentic commerce pulls them apart.

The first question is consent: did the payer agree to this payment? The EU Payment Services Directive (PSD2, Directive (EU) 2015/2366) says a payment "is considered to be authorised only if the payer has given consent", that consent can be given before the payment is executed, and that it is given "in the form agreed between the payer and the payment service provider"1. Read that last part slowly. Consent is defined by the agreement between the cardholder and their bank, not by the shop.

The second question is authentication: is the person giving consent really the cardholder? That is what strong customer authentication (SCA) checks, and the next section explains it.

The third question is the issuer's approval: does the bank accept this particular payment, given the balance, the risk score and its own rules? That is the "authorisation" in the narrow, technical sense of the card message.

An agent can fail any of the three. It can buy something the person never wanted (no consent). It can be run by someone who stole the person's account (failed authentication). Or the bank can simply decline. The rest of this chapter keeps the three apart, because the evidence a shop needs is different for each.

Example: the three questions for one agent order

Sam now asks his shopping assistant to buy the table for him. Consider the three questions for that order.

  • Consent: Sam told the assistant "an oak side table, under £200 delivered, this week". The £189 table at Wrenfield fits. Whether that sentence counts as consent to a £189 payment to Wrenfield depends on how it was recorded and on what Sam's bank accepts as consent.
  • Authentication: was it really Sam who gave the instruction, and not someone who got into his assistant account? That depends on how the agent platform and the bank verified him.
  • Issuer approval: Sam's bank still sees a £189 request from Wrenfield Home through Stripe, and still approves or declines it.

Wrenfield can influence only the third question directly, through a clean payment request. For the first two it depends on evidence other parties produce, and the shop must keep that evidence.

Strong customer authentication in plain words

Strong customer authentication is a legal rule, not a card scheme preference. PSD2 defines it as authentication "based on the use of two or more elements categorised as knowledge (something only the user knows), possession (something only the user possesses) and inherence (something the user is)"1. A password plus a phone that receives a code is two elements. A fingerprint on a registered phone is two elements: the finger and the phone.

Article 97 of PSD2 tells the payer's PSP (for a card, the issuer) to apply SCA when the payer "initiates an electronic payment transaction". For remote payments, such as an online shop, it must include elements "which dynamically link the transaction to a specific amount and a specific payee"1. The detailed rules sit in the regulatory technical standards on SCA, Delegated Regulation (EU) 2018/389. Its Article 5 spells out dynamic linking: the payer "is made aware of the amount of the payment transaction and of the payee", the code is specific to that amount and payee, and "any change to the amount or the payee results in the invalidation of the authentication code generated"2.

The UK copied the rule into its own law before Brexit and kept it. Regulation 100 of the Payment Services Regulations 2017 says a PSP "must apply strong customer authentication" when a user "initiates an electronic payment transaction", with the same dynamic link to "a specific amount and a specific payee"3. The detailed UK standards are now the FCA's own version of the technical standards, which keep the same families of exemptions4.

Notice who carries the duty. The issuer applies SCA. The shop does not authenticate the cardholder itself. The shop's job is to make the authentication possible, which for cards means supporting 3D Secure, the protocol through which the issuer can challenge the cardholder during checkout.

There is a sharp financial reason to take that job seriously. If SCA was required and the payee "fails to accept strong customer authentication", PSD2 says the payee or its PSP "shall refund the financial damage caused to the payer's payment service provider"1. The UK rule is the same: the payee or its PSP "must compensate the payer's payment service provider for the losses incurred"5. In plain words: if a shop skips authentication where the law requires it, and the payment turns out to be fraud, the loss lands on the shop's side.

The reverse also holds. Stripe's documentation describes the "liability shift": when a payment has been authenticated through 3D Secure and is later disputed as fraud, "the liability typically shifts from you to the card issuer". When an exemption is applied instead, "liability shift doesn't apply"6.

Example: dynamic linking for the £189 table

Sam buys the table himself on the website. His bank's app shows "Wrenfield Home, £189.00" and he approves with his fingerprint. The authentication code the bank generates is tied to £189.00 and to Wrenfield Home.

Now suppose a bug in the checkout added a £5 gift wrap after Sam approved, so the shop asked for £194. Under Article 5 of the technical standards, a change to the amount invalidates the code. The £194 request would need a fresh authentication, or the bank would decline it. This matters for agents too: whatever the human approved, the amount and the payee that reach the bank must match it exactly, or the approval no longer covers the payment.

Exemptions and payments outside the rule

Not every online payment needs a challenge. The technical standards list exemptions, and the issuer (or, for some, the acquirer) may apply them. The ones that matter for an online shop are these2:

ExemptionWhat the rule saysWho can use it
Low value (Article 16)Up to EUR 30 per payment, until the payer has made EUR 100 in total or five payments since the last SCAThe payer's or the payee's PSP
Transaction risk analysis (Article 18)Remote payments the PSP judges low risk, up to EUR 100, 250 or 500 depending on its fraud rateThe PSP that meets the fraud rate
Recurring (Article 14)Same amount, same payee, after SCA on the first paymentThe payer's PSP
Trusted beneficiaries (Article 13)The payer has put the payee on a list held by their own bankThe payer's PSP

The transaction risk analysis thresholds are tied to fraud rates for card payments: a PSP may exempt payments up to EUR 500 if its fraud rate is at or below 0.01%, up to EUR 250 at 0.06%, and up to EUR 100 at 0.13%2. The UK's version keeps the same structure with its own figures in the FCA's standards4.

Separate from the exemptions, some payments are not "initiated by the payer" at all, so the SCA duty does not bite. The European Commission's answer to an EBA question (Q&A 2018_4031) explains that payments initiated by the payee only, based on a mandate the payer gave earlier, "are therefore not subject to" SCA, as long as they need no action by the payer. But setting up that mandate through a remote channel is itself subject to SCA7. These are merchant initiated transactions (MITs): a subscription charge, a later instalment, a no show fee. Stripe's documentation describes the same idea from the merchant side: a payment made off session with a properly authenticated saved card can qualify as a merchant initiated transaction, and it needs an agreement with the customer that covers permission, frequency and how the amount is set6.

Two practical facts follow. An exemption is a request, not a right: the issuer may still demand authentication. And an exempted payment gives up the liability shift. If it turns out to be fraud, the cost usually stays with the merchant.

Example: does the Hollin table qualify for an exemption?

The table costs £189. That is far above the low value limit, which only covers small payments of around EUR 30 or the UK equivalent, so that exemption is out.

Transaction risk analysis could apply in principle. Under the EU table, a payment of this size falls under the EUR 250 band, so the PSP applying the exemption would need a card fraud rate at or below 0.06%. Whether Stripe or Sam's bank applies it is their decision, made in real time, and Wrenfield cannot force it.

The recurring exemption does not fit: a table is a one off purchase. Trusted beneficiaries would only apply if Sam had added Wrenfield to a list in his own banking app, which few people do.

So for an ordinary purchase of the table, Wrenfield should assume the issuer may ask for authentication, and build every agent flow so that a challenge can reach Sam.

The expected cost of a challenge versus an exemption

Shops often ask their PSP to request exemptions, because every challenge loses some customers. With agents the trade off becomes sharper: a challenge that reaches a person who is not looking at a screen may never be answered. A small expected value calculation makes the choice concrete. If you want the background, see Foundations: expected value.

The expected cost of asking for an exemption on one order is the chance of fraud times what a lost fraud dispute costs:

Eexempt=pf×(V+F)E_{\text{exempt}} = p_f \times (V + F)

Here pfp_f is the probability that the order is fraudulent, VV is the order value the shop loses in a fraud dispute, and FF is the dispute fee its PSP charges. The idea behind it is in Foundations: expected value. The expected cost of a challenge is the chance that the challenge kills the sale times the margin lost:

Echallenge=pa×mE_{\text{challenge}} = p_a \times m

Here pap_a is the probability that the order is abandoned because of the challenge, and mm is the contribution margin the shop would have earned on the order (Foundations: expected value). Contribution margin means what is left of the sale after the cost of the goods, delivery and payment fees.

Example: the numbers for Wrenfield's agent orders

All numbers here are invented for the example. Callum assumes a fraud probability of 0.4% for agent orders placed with a token (pf=0.004p_f = 0.004), an order value of £189 (V=189V = 189), a dispute fee of £15 (F=15F = 15, real fees vary by PSP), an abandonment rate of 10% when a challenge has to travel back to a person through the agent (pa=0.10p_a = 0.10), and a contribution margin of £62 on the table (m=62m = 62).

Eexempt=0.004×(189+15)=0.004×204=0.816E_{\text{exempt}} = 0.004 \times (189 + 15) = 0.004 \times 204 = 0.816

So EexemptE_{\text{exempt}} is about £0.82 per order. For the challenge, with pa=0.10p_a = 0.10 and m=62m = 62:

Echallenge=0.10×62=6.20E_{\text{challenge}} = 0.10 \times 62 = 6.20

So EchallengeE_{\text{challenge}} is £6.20 per order. On these assumptions an exemption costs about £0.82 per order in expected fraud losses, and a challenge costs £6.20 in expected lost margin. Across the 14 orders a month that arrive through an in assistant checkout in this series' scenario, that is 14 × £0.82 = £11.48 against 14 × £6.20 = £86.80. (In the example these 14 orders come through a preview programme of the shop's payment provider. For a real UK shop the figure today would be close to zero, because no big assistant offers its own checkout in the UK yet.)

Two warnings. First, the shop does not choose: the issuer decides whether to challenge, and the PSP decides whether to request an exemption. The calculation tells Wrenfield what to ask its PSP for and where to set its fraud rules. Second, the fraud probability for agent orders is not known yet for most shops. If it were ten times higher, at 4%, the exemption would cost 0.04 × 204 = £8.16 and the challenge would win. Measure it before trusting it. A later chapter of this series works through fraud and chargebacks in detail.

Bar chart of invented figures for the example shop. Expected cost per order when an exemption is requested: 0.82 pounds, from a 0.4% fraud probability times 204 pounds lost. Expected cost when a challenge is sent: 6.20 pounds, from a 10% abandonment rate times 62 pounds margin. Third bar: the exemption if the fraud probability were 4%, 8.16 pounds. Tap or click to open full screen and move around

Four ways an agent can pay

So how does an agent actually hand over money? Today there are four patterns, from the crudest to the most structured. A shop meets all four, sometimes in the same week.

PatternWhat the shop receivesWho authenticates the personStatus (checked November 2026)
Browser agent types the card into the normal checkoutA normal card paymentThe issuer, through 3D Secure, if the person is reachableHappens today, no protocol
Card network agentic tokenA token and cryptogram in the normal card fieldsThe person approves an instruction with a passkey, the network checks itVisa and Mastercard developer programmes, onboarding required
PSP scoped token (Stripe shared payment token, ACP delegated payment)A token limited to one shop, one amount, one expiryThe agent platform and the issuerStripe preview, ACP spec in beta
Signed mandates (AP2)A user signed or agent signed mandate bound to the checkoutThe person on a trusted screen, the verifiers check signaturesOpen specification, version 0.2

The browser agent with a card number

The simplest agent opens the shop in a browser, fills in the checkout and types the card details it was given. To the shop it looks like a human with fast fingers. No protocol is involved, and that is the problem. The agent holds a full card number, which is exactly what the payment industry has spent twenty years removing from places it does not need to be. If the bank challenges the payment, the prompt goes to the cardholder's phone, and the agent has to wait for a human or fail.

Example: a browser agent at Wrenfield's checkout

An invented browser agent fills in Wrenfield's checkout on Sam's behalf at 2.10pm. Stripe sends the £189 authorisation. Sam's bank asks for 3D Secure, and the prompt goes to Sam's phone. Sam is in a meeting until 3pm. The 3D Secure window times out, the payment fails, and the agent reports "payment declined". From Wrenfield's side this is one abandoned checkout, and Solidus shows a failed payment with no hint that an agent was involved. The shop cannot tell this case from a human who gave up, which is why card tokenisation and the structured patterns below exist.

Card network agentic tokens

Visa and Mastercard both run programmes that give agents their own tokens. A network token replaces the card number with a different number that only works in a defined context. Agentic tokens add an agent to that context.

Visa Intelligent Commerce, in Visa's own developer documentation, lets "Agent Providers, Wallet Providers, and Agent Enablers" conduct commerce "on behalf of consumers using Visa credentials", with Visa Payment Passkeys to "facilitate consumer consent to a purchase instruction"8. The workflow page describes the sequence: the consumer gives a purchase instruction with the product, merchant, price ceiling, quantity and validity window. The consumer authenticates the instruction, for example with a passkey. Visa checks the transaction against the stored instruction and only then returns a token and a one time cryptogram. The merchant receives that token, cryptogram and ECI value and sends a normal authorisation over Visa's network. For instructions that do not recur, Visa notes that the person may have to authenticate again if the original authentication is more than one week old9. Production access needs Visa's approval at each stage8.

Mastercard's merchant guidance for its Agent Pay programme says the merchant side barely changes: existing checkout forms keep working unchanged, and "From your form's perspective, the token looks like a standard card number." It says that "Agents assume responsibility for consumer verification", that merchant systems "do not need to implement additional authentication logic for agentic transactions", and that "Standard fraud detection, chargeback rights, and dispute resolution processes apply"10.

Example: Sam's instruction as a Visa style purchase instruction

On Monday at 9am Sam tells his assistant: one oak side table, maximum £200 delivered, from Wrenfield Home, Oakbarrow Living or Northdale Interiors (all three invented), valid until Sunday. His phone shows the instruction and he approves it with a passkey. On Wednesday at 2pm the agent has chosen Wrenfield at £189. It asks Visa for credentials for that checkout. Visa compares £189 with the £200 ceiling and Wrenfield with the allowed merchants, both pass, and the authentication is two days old, inside the one week window. Visa returns a token and a cryptogram. Wrenfield's checkout receives them like a card, Stripe sends the authorisation, and Sam's bank approves it.

PSP scoped tokens: Stripe shared payment tokens and ACP delegated payment

The Agentic Commerce Protocol (ACP), maintained by OpenAI and Stripe and described in its own repository as "currently in beta" with the latest version dated 2026-04-17, has a separate delegated payment specification11. The agent platform sends the card credential to the merchant's PSP, which "tokenizes a credential for controlled usage by the merchant's PSP per the Allowance constraints". The allowance has six required fields: reason (currently only one_time), max_amount in minor units, currency, checkout_session_id, merchant_id and expires_at12. The checkout specification also lets a seller signal that 3D Secure is required, through an interventions capability and a requires_3ds message code, so that the agent can pass the challenge to the buyer13.

Stripe's implementation is the shared payment token (SPT). Stripe describes it as "a scoped grant to use the customer's payment method", granted by the agent to the seller "each with usage and expiration limits", and available in the US, Canada and a list of European countries that includes GB, IE, DE and AT14. The limits sit in usage_limits: currency, max_amount and expires_at. Stripe adds that "The agent sets the maximum amount to match the total amount of the transaction." The seller turns the token into a payment by creating a PaymentIntent with payment_method_data[shared_payment_granted_token]. An SPT can be used once, unless it carries a recurring_interval, and Stripe rejects setup_future_usage on it, so the shop cannot quietly save the card for later. When the token is used, resolved, expires or is revoked, Stripe sends a shared_payment.granted_token.deactivated event14. Using SPTs means agreeing to Stripe's agentic commerce preview terms, so treat it as a preview product14.

The SPT documentation adds one detail worth reading twice: Stripe "might use tokens issued through network programs such as Mastercard's Agent Pay, Visa's Intelligent Commerce, and American Express ACE Kit on your behalf"14. In other words, the PSP layer and the network layer stack. A shop on Stripe may receive a network agentic token without building anything for it.

Example: the token for Sam's table

The token Wrenfield receives for Sam's order carries these limits: currency gbp, maximum amount 18900 (£189.00 in pence) and an expiry one hour after it was issued. Notice that there are now two limits. Sam's own ceiling of £200 lives with the agent or the instruction. The token's limit is exactly £189, the checkout total. If Wrenfield tried to charge £194 for gift wrap, Stripe would refuse, because 19400 is more than 18900. If Wrenfield tried to use the token at 4pm, it would have expired. If Callum tried to save the card for a future order, Stripe would reject setup_future_usage. The scope does the work that a human watching the checkout used to do.

Signed mandates: the AP2 model

The Agent Payments Protocol (AP2), published by Google with partners, takes a different angle: it focuses on proof. Version 0.2, released on 28 April 2026, defines two mandate types1516. The Checkout Mandate gives "the Merchant cryptographic proof that the Shopping Agent is authorized to purchase the Checkout that it has assembled", bound to a merchant signed checkout by a hash. The Payment Mandate gives the credential provider, the network and the merchant's PSP proof that the agent may pay for that particular checkout15.

AP2 names two modes. In Human Present mode, the person "directly sees the closed Checkout and approves it and its payment explicitly". In Human Not Present mode, the person approves "a set of constraints", called open mandates, and the agent later signs the closed mandates itself with a key the open mandate names15. The constraints are concrete: payment.amount_range with a minimum, a maximum and a currency, payment.allowed_payees, payment.execution_date, payment.budget and others17. The approval must happen on a "Trusted Surface", which the specification says must not be agentic, meaning no language model sits between the person and the screen that collects consent15.

The part that matters most for a shop is the section on disputes. AP2 says the Checkout Mandate and Receipt and the Payment Mandate and Receipt can be brought together to give a picture of the transaction that no party can later deny, while "retention, and retrieval requirements are outside the scope of this specification"15. So the protocol creates the evidence, and deciding how long to keep it is left to you.

Example: Sam's purchase as AP2 mandates

On Monday Sam approves an open Payment Mandate on his phone's trusted screen with three constraints: an amount range of £0 to £200 in GBP, allowed payees Wrenfield Home, Oakbarrow Living and Northdale Interiors, and an execution date up to Sunday. On Wednesday Wrenfield returns a signed checkout for £189. The agent signs a closed Checkout Mandate and a closed Payment Mandate for £189 to Wrenfield and sends them along with the open mandates. Wrenfield's systems check that the hash in the Checkout Mandate matches the checkout they signed, and that £189 sits inside £0 to £200. The credential provider checks the Payment Mandate. Each side returns a signed receipt. Wrenfield stores its Checkout Mandate and receipt with the order.

What is live, what is announced and what is guesswork

Agentic payments move monthly, so here is the state of things as I checked it in November 2026, each from the owner's own documentation.

ItemState, from its own sourceChecked
ACP checkout and delegated payment specsOpen spec, "currently in beta", latest version 2026-04-17, maintained by OpenAI and Stripe1123 November 2026
Stripe shared payment tokensDocumented, API version 2026-09-30.preview, preview terms, GB, IE, DE and AT listed1423 November 2026
AP2Specification version 0.2, released 28 April 2026, compatible with the Universal Commerce Protocol151623 November 2026
Visa Intelligent CommerceDeveloper documentation live, production access after Visa approval8923 November 2026
Mastercard Agent PayMerchant guidance published, existing card fields accept agentic tokens1023 November 2026
KlarnaStates it supports AP2, UCP and ACP and is "already live" across UCP and ACP, with flexible payments through Stripe's SPTs1823 November 2026
EU Payment Services Regulation and PSD3Not yet law: Council position published 5 November 2026, Parliament second reading forecast for 14 December 20261923 November 2026

What is guesswork, and labelled as such here: how issuers will treat an agent signed payment under the SCA rules at scale, whether exemption rates for agent payments will be higher or lower than for humans, and whether the new EU payment rules will say anything specific about agents. I looked for agent specific provisions in the published procedure and could not verify any, so I make no claim about them.

Here is the hard question this chapter cannot fully answer, because nobody can yet. When Sam approves "up to £200, one of three shops, by Sunday" with a passkey on Monday, and the agent pays £189 to Wrenfield on Wednesday, was the Wednesday payment strongly authenticated?

Look at what the law asks for. Article 97 wants SCA that dynamically links the payment to "a specific amount and a specific payee"1. On Monday Sam saw a ceiling and three payees, not £189 and Wrenfield. The technical standards do contain shapes close to this: an authentication code specific to the "exact amount of the funds to be blocked" when the final amount is unknown, and one specific to "the total amount of the batch" and "the specified payees" for a batch of payments2. Neither was written with an autonomous agent in mind.

On the other side, PSD2 lets consent be given before execution, in the form the payer and their bank agree1, and the EBA question on merchant initiated payments shows that a mandate given once, with SCA, can carry later payments7. The network programmes lean on this: Visa checks the payment against the authenticated instruction and asks again after a week9, and Mastercard tells merchants that agents "assume responsibility for consumer verification"10.

My view: for the next year or two the honest position for a shop is that the issuer and the network decide whether an agent payment counts as authenticated, and the shop's job is to make sure the evidence exists. Do not build your own theory of SCA compliance for agents. Accept the tokens your PSP supports, always let a 3D Secure challenge travel back to the person, and keep the mandate. If regulators later say an approved instruction is enough, you lose nothing. If they say it is not, you have the evidence trail to show what the person approved.

Example: Sam's purchase against the dynamic linking test

Check each element of Article 5 of the technical standards against Sam's Wednesday payment, as Visa's flow would run it.

  • Is the payer made aware of the amount and payee? On Monday, of the ceiling (£200) and the three possible payees. On Wednesday, not necessarily, unless the agent shows him.
  • Is the code specific to the amount and payee? The network's cryptogram is generated for the £189 checkout at Wrenfield, after checking it against the instruction.
  • Does any change invalidate it? Yes: a different amount or merchant would fail the check against the instruction, and the one time cryptogram would not match.

Two of three elements fit cleanly. The first depends on whether the person sees the final amount and payee. The cleanest design today is the one AP2 calls Human Present: the agent shows Sam "Wrenfield Home, £189.00" and he taps approve. That costs a moment of his attention and removes most of the doubt.

Customer initiated or merchant initiated: label every payment honestly

Card payments carry a flag that says who started them. A customer initiated transaction (CIT) is one the cardholder starts, directly or through someone acting for them. A merchant initiated transaction (MIT) is one the merchant starts later under an earlier agreement. MITs sit outside SCA, which makes the flag tempting to misuse7.

An agent buying the table for Sam is not a merchant initiated payment. Sam, through his agent, initiated it. Labelling it as an MIT to dodge a challenge would misstate the transaction to the issuer, and if it turned out to be fraud, the shop would have neither the liability shift nor a defensible flag. Stripe's SPT rules reflect this: a one time token cannot be used off session unless its permissions allow it, and only a token with a recurring_interval can be reused14.

There is one legitimate MIT case with agents: a recurring purchase that the person set up, with SCA, as a mandate.

Example: a recurring order of oak care oil

Wrenfield also sells a bottle of oak care oil for £12 (invented). Sam asks his agent to reorder it every three months. The agent grants Wrenfield a recurring SPT with a recurring_interval, and the first payment of £12 is authenticated. Every three months Wrenfield's Solidus app charges £12 off session against that token. These later payments are merchant initiated under the agreement, so they fall outside SCA, and the issuer may still decline them. Over a year that is four payments, 4 × £12 = £48, and only the first needed Sam's fingerprint.

The table, bought once, is the opposite case: a customer initiated payment, labelled as one, with authentication possible at every step.

What the shop must store: the evidence file

When a human buys, the evidence of intent is implicit: they came to the site, filled in the form and passed 3D Secure. When an agent buys, the shop has to keep the evidence deliberately, because a dispute will ask three questions. Did the person authorise this? Was it the person? Was it what they asked for?

PSD2 puts the first burden on the payer's bank: where a payer denies authorising a payment, "it is for the payment service provider to prove" that it was authenticated, recorded and executed correctly (Article 72)1. The bank will then turn to the merchant through the dispute process. The person can raise an unauthorised payment for up to 13 months after the debit date, both in the EU and under regulation 74 of the UK regulations120. That gives a minimum horizon for keeping the evidence.

EvidenceWhere it comes fromWhy it matters
Agent identitySPT agent_details, the protocol's request headers, the network tokenShows which agent platform acted
Protocol and versionACP API-Version, AP2 vct claimShows which rules applied
Mandate or allowanceSPT usage_limits, ACP allowance, AP2 mandates and receiptsShows what the person agreed to
The basket the person approvedThe checkout session or signed checkout, hashedProves the order matches the approval
Authentication outcome3D Secure result or the network's verificationShows who carries the liability
PSP referencesPaymentIntent id, Solidus payment response_codeLinks the evidence to the money
Fulfilment proofCarrier tracking and delivery scanAnswers "never arrived" disputes

Keep only what you need. Agent identity, mandates and baskets are personal data when they relate to a person. The UK GDPR's storage limitation principle says personal data must be kept "for no longer than is necessary for the purposes for which the personal data are processed"21. A sensible rule is to keep the evidence file for the dispute window plus a margin, then delete it or strip it to what your accounting records need.

Example: the evidence file for Sam's order

Here is the record Wrenfield keeps for Sam's order, order number R482913506 (invented):

  • Agent: an invented assistant platform, as named in agent_details.name, with its Stripe network profile.
  • Protocol: ACP, version 2026-04-17.
  • Allowance: max_amount 18900, currency gbp, expiry Wednesday 3.02pm.
  • Approved basket: one WH-1042 at £189.00, delivery £0.00, total £189.00, VAT £31.50, stored as a SHA 256 hash of the checkout session JSON plus the JSON itself.
  • Authentication: no challenge, issuer approved with the network token's cryptogram.
  • PSP: one Stripe PaymentIntent id, copied into the Solidus payment's response_code.
  • Delivery: tracking number and the carrier's delivery scan, added on the following Monday.

Retention: 13 months from the debit date plus three months of margin, so 16 months, then the agent and mandate fields are deleted and the order keeps only what the books need.

Building it in Solidus: a sketch

Now the developer's part. Solidus already models payments well. The Solidus guides describe Spree::Payment as the link between an order, a payment source and a payment method, store the PSP's transaction reference in response_code, and let you write your own payment method by inheriting from Spree::PaymentMethod22. Payments move through a state machine with states such as checkout, processing, pending, completed, failed and void23. Since Solidus 4.5, payments and orders also carry customer_metadata and admin_metadata JSON columns24.

Those metadata columns are tempting for the evidence file, but they are the wrong home for it. When metadata validation is switched on, Solidus limits them to a few short keys and values of 256 characters by default, and a signed mandate is far longer. So Callum gives the evidence its own table and puts only a pointer in the payment's admin_metadata.

First the table, as a Rails 8 migration (Ruby):

# db/migrate/20270106090000_create_agent_payment_authorisations.rb
class CreateAgentPaymentAuthorisations < ActiveRecord::Migration[8.0]
  def change
    create_table :agent_payment_authorisations do |t|
      t.references :order, null: false, foreign_key: { to_table: :spree_orders }
      t.references :payment, foreign_key: { to_table: :spree_payments }
      t.string  :protocol, null: false          # "acp", "ap2", "visa_ic", "mastercard_agent_pay"
      t.string  :protocol_version
      t.string  :agent_name
      t.string  :credential_reference, null: false # spt_..., mandate id or token reference
      t.integer :max_amount_minor, null: false
      t.string  :currency, null: false, limit: 3
      t.datetime :expires_at
      t.string  :basket_sha256, null: false
      t.jsonb   :approved_basket, null: false, default: {}
      t.jsonb   :mandate_evidence, null: false, default: {}
      t.string  :authentication_outcome          # "3ds_challenge", "frictionless", "network_verified", "exempt"
      t.datetime :purge_after, null: false
      t.timestamps
    end
    add_index :agent_payment_authorisations, :credential_reference, unique: true
    add_index :agent_payment_authorisations, :purge_after
  end
end

The unique index on the credential reference means the same token can never be recorded twice, which is the database half of "use once". The purge_after column makes the retention rule from the previous section a query rather than a promise.

Next, the service that completes an agent order with a Stripe shared payment token. It reads the token's limits, refuses to charge more than the token allows, charges through a PaymentIntent and records everything in one transaction. It uses raw_request, which the Stripe Ruby library documents for preview endpoints, and Stripe's preview API version from the SPT documentation2514.

# app/services/agent_checkout/complete_with_shared_token.rb
module AgentCheckout
  class CompleteWithSharedToken
    STRIPE_VERSION = "2026-09-30.preview"
    class LimitExceeded < StandardError; end

    def initialize(order:, spt_id:, protocol_version:, approved_basket:, payment_method:)
      @order = order
      @spt_id = spt_id
      @protocol_version = protocol_version
      @approved_basket = approved_basket      # the checkout session JSON the agent approved
      @payment_method = payment_method        # a Spree::PaymentMethod subclass for agent tokens
      @client = Stripe::StripeClient.new(ENV.fetch("STRIPE_SECRET_KEY"))
    end

    def call
      grant = fetch_grant
      amount_minor = (@order.total * 100).round   # £189.00 becomes 18900
      limits = grant["usage_limits"]

      raise LimitExceeded, "amount above token limit" if amount_minor > limits["max_amount"]
      raise LimitExceeded, "currency mismatch" unless limits["currency"] == @order.currency.downcase

      intent = charge(amount_minor)
      record(intent, grant, amount_minor)
    end

    private

    def fetch_grant
      resp = @client.raw_request(:get, "/v1/shared_payment/granted_tokens/#{@spt_id}",
                                 opts: { stripe_version: STRIPE_VERSION })
      JSON.parse(resp.http_body)
    end

    def charge(amount_minor)
      resp = @client.raw_request(:post, "/v1/payment_intents",
        params: {
          amount: amount_minor,
          currency: @order.currency.downcase,
          confirm: true,
          payment_method_data: { shared_payment_granted_token: @spt_id },
          metadata: { solidus_order: @order.number }
        },
        opts: { stripe_version: STRIPE_VERSION, idempotency_key: "agent-#{@order.number}" })
      JSON.parse(resp.http_body)
    end

    def record(intent, grant, amount_minor)
      ActiveRecord::Base.transaction do
        payment = @order.payments.create!(
          amount: @order.total,
          payment_method: @payment_method,
          response_code: intent["id"],
          admin_metadata: { "agent_auth" => @spt_id }
        )
        payment.started_processing!
        intent["status"] == "succeeded" ? payment.complete! : payment.pend!

        AgentPaymentAuthorisation.create!(
          order: @order,
          payment: payment,
          protocol: "acp",
          protocol_version: @protocol_version,
          agent_name: grant.dig("agent_details", "name"),   # nil when Stripe does not return it
          credential_reference: @spt_id,
          max_amount_minor: grant.dig("usage_limits", "max_amount"),
          currency: grant.dig("usage_limits", "currency"),
          expires_at: Time.zone.at(grant.dig("usage_limits", "expires_at")),
          approved_basket: @approved_basket,
          basket_sha256: Digest::SHA256.hexdigest(@approved_basket.to_json),
          authentication_outcome: "network_verified",
          purge_after: 16.months.from_now
        )
        payment
      end
    end
  end
end

A few notes for anyone new to this code. raw_request sends a request to any Stripe endpoint and returns the raw response, which is why the body is parsed with JSON.parse. The idempotency key makes a retried request safe: if the network drops after Stripe charged the card, sending the same key again returns the first result instead of charging twice. The payment_method is a small subclass of Spree::PaymentMethod that Callum writes, shaped like Solidus's own Spree::PaymentMethod::Check, whose source_required? returns false, because an agent token is not a saved card the shop holds. The state events started_processing!, complete! and pend! are the ones Solidus defines for payments23. If the PaymentIntent needs 3D Secure, its status will not be succeeded, the payment stays pending, and the checkout must send the challenge back to the agent rather than silently failing. A production version also handles declines and network errors, and its tests (written first) cover a total above the limit, a wrong currency, an expired token and a replayed request.

Finally, Stripe tells the shop when a token stops working. The webhook endpoint verifies Stripe's signature, as Stripe's documentation requires, and marks the authorisation record26. Here is the controller.

# app/controllers/webhooks/stripe_controller.rb
module Webhooks
  class StripeController < ActionController::API
    def create
      event = Stripe::Webhook.construct_event(
        request.raw_post,
        request.headers["Stripe-Signature"],
        ENV.fetch("STRIPE_WEBHOOK_SECRET")
      )

      if event.type == "shared_payment.granted_token.deactivated"
        token = event.data.object
        status = { deactivated_at: token.deactivated_at,
                   deactivated_reason: token.deactivated_reason }.to_json
        # merge into the stored evidence instead of overwriting it
        AgentPaymentAuthorisation
          .where(credential_reference: token.id)
          .update_all(["mandate_evidence = mandate_evidence || ?::jsonb", status])
      end

      head :ok
    rescue JSON::ParserError, Stripe::SignatureVerificationError
      head :bad_request
    end
  end
end

And one query Callum runs every Monday against PostgreSQL to make sure no agent order slipped through without evidence, or above its limit:

-- PostgreSQL: agent orders from the last 30 days with missing or inconsistent evidence
SELECT o.number,
       o.total,
       a.max_amount_minor,
       a.currency,
       CASE
         WHEN a.id IS NULL THEN 'no evidence record'
         WHEN round(o.total * 100) > a.max_amount_minor THEN 'charged above the token limit'
         WHEN a.basket_sha256 IS NULL THEN 'no basket hash'
       END AS problem
FROM spree_orders o
LEFT JOIN agent_payment_authorisations a ON a.order_id = o.id
WHERE o.completed_at >= now() - interval '30 days'
  AND o.admin_metadata ->> 'channel' = 'agent'
  AND (a.id IS NULL
       OR round(o.total * 100) > a.max_amount_minor
       OR a.basket_sha256 IS NULL);

The query assumes that the agent checkout writes "channel": "agent" into the order's admin_metadata, which is a short value and fits those columns comfortably.

Example: Sam's £189 through the code

The order total is £189.00, so amount_minor is 189.00 × 100 = 18900. The grant's max_amount is 18900, so the check 18900 > 18900 is false and the charge proceeds. The currency check compares gbp with gbp. Stripe returns a PaymentIntent with status succeeded, so the Solidus payment moves from checkout to processing to completed. The authorisation record stores the token id, the limits, the basket and its hash, and purge_after is set 16 months ahead. An hour later Stripe sends shared_payment.granted_token.deactivated with the reason that the token was consumed, and the webhook writes it into mandate_evidence. On Monday Callum's query returns no rows for Sam's order.

Wallets, pay later and bank payments

Cards are not the only way people pay at Wrenfield, so a word on the others. PayPal, pay later providers and pay by bank payments each have their own authentication, and that authentication happens in the provider's own app or the person's bank, not in the shop.

Bank payments started through a payment initiation service fall under the same SCA rule as cards: the person's bank must authenticate them, with the dynamic link to amount and payee3. An agent cannot log into someone's bank, and it should never be given the person's banking credentials. So a bank payment from an agent needs the person to approve it in their banking app, which makes it a Human Present payment by design.

Pay later providers are moving into agent checkouts on their own terms. Klarna, for example, says it supports AP2, UCP and ACP and offers its payment options to merchants through Stripe's shared payment tokens18. For Wrenfield that means the pay later option, where it exists, arrives through the same token path as a card, and Klarna, not Wrenfield, decides whether to extend credit.

Example: Wrenfield's agent orders by payment path

In this series' scenario, Wrenfield receives 60 orders a month placed by or through agents, 14 of them through an in assistant checkout, which in the example runs through a preview programme of the shop's payment provider and for a real UK shop today would be close to zero. Callum splits them by payment path (the split is invented):

  • 14 orders through an in assistant checkout with a scoped token.
  • 9 orders where a browser agent filled in the normal checkout with a card, of which 3 failed at a 3D Secure challenge nobody answered in time.
  • 37 orders where the agent prepared the basket and the person completed payment themselves, with wallets, cards or pay later.

Only the first group carries structured evidence of the agent. The second group is the one Callum wants to shrink: 3 failures out of 9 attempts is a failure rate of 3 ÷ 9 = 33%, against none in the token group in this invented month.

Bar chart of invented figures for the example shop. Of 60 agent orders in a month, 14 were paid with a scoped token in an assistant checkout, 6 were completed by a browser agent typing a card into the normal checkout, 3 browser agent attempts failed at an unanswered 3D Secure challenge, and 37 were prepared by an agent and paid by the person. Tap or click to open full screen and move around

The whole delegated purchase, end to end

Here is Sam's purchase once more as one flow, with every point where the money can stop. It is the main worked example of this chapter, so every step carries its numbers.

Tap or click to open full screen and move around

Example: the timeline with every number

  • Monday, 9.00am. Sam's instruction: one oak side table, maximum £200 including delivery, from three named shops, valid until Sunday. He approves it with a passkey.
  • Wednesday, 1.55pm. The agent compares the three shops. Wrenfield: £189 with free delivery, total £189. Oakbarrow Living: £179 plus £9.95 delivery, total £188.95. Northdale Interiors: £199 with free delivery and free returns, total £199. All three are under £200. How agents choose between offers like these is the subject of the chapter on how agents find and choose products. Here the agent picks Wrenfield.
  • Wednesday, 2.00pm. The agent opens an ACP checkout session at Wrenfield. Total £189.00, of which £31.50 is VAT.
  • Wednesday, 2.01pm. Check against the instruction: £189 ≤ £200, headroom £200 minus £189 = £11. Wrenfield is on the list. Pass.
  • Wednesday, 2.02pm. A scoped token is granted: max_amount 18900, currency gbp, expires at 3.02pm.
  • Wednesday, 2.02pm. Wrenfield's service checks 18900 ≤ 18900 and creates the PaymentIntent. Stripe sends the authorisation through the network to Sam's bank.
  • Wednesday, 2.02pm. Sam's bank sees a network token with a valid cryptogram for an instruction Sam authenticated two days ago. It approves without a challenge.
  • Wednesday, 2.03pm. Solidus marks the payment completed and the order complete. The evidence record is written.
  • The following Monday. The table is delivered three working days after the order, inside the 3 to 5 working day promise. The tracking scan joins the evidence file.

Had the issuer asked for a challenge at 2.02pm, the PaymentIntent would have stayed pending, Wrenfield's checkout would have returned a 3D Secure requirement to the agent, and Sam would have seen a prompt on his phone. The design goal is simple: that prompt must be able to reach him.

Who authenticates what

The last table pulls the roles together. It is the one to pin above Callum's desk.

PartyWhat it verifiesHowWhat the shop sees
The personThat the agent may act for themPasskey or approval on a trusted, non agentic screenNothing directly, only the mandate or token that results
Agent platformThat its user is who they claim to beIts own login and account securityAgent identity in the token or headers
Card networkThat the payment fits the approved instructionChecks amount, merchant and validity, issues a cryptogramA token and cryptogram in the card fields
PSPThat the token is used within its scopeLimits on amount, currency, shop and expirySuccess or refusal, webhook events
IssuerThat the cardholder authorised the payment, SCA where required3D Secure challenge, exemption or acceptance of network verificationApproval, decline or a challenge request
MerchantThat the order matches what was approvedHash of the signed checkout, limit checks in its own codeIts own evidence file

What a small shop should do now

Most of this is decided by networks, PSPs and banks, so the list for a shop like Wrenfield is shorter than the chapter.

  • Ask your PSP which agent payment methods it supports in your countries, in writing, with dates. For Stripe that means shared payment tokens and whether network agentic tokens already reach you.
  • Never accept card numbers from agents outside your PSP's hosted fields. If a browser agent types a card into your checkout, it goes through the same hosted fields and 3D Secure as a human, which keeps your PCI DSS position unchanged.
  • Make sure every agent checkout can return a 3D Secure challenge to the person. A payment that can only succeed without a challenge will fail at the first cautious issuer.
  • Never mark an agent purchase as merchant initiated to avoid a challenge.
  • Give agent evidence its own table, with a retention date, and test it like any other part of checkout. I work test first on shops like this, and the tests for this table are some of the best value insurance you can buy.
  • Keep the payment account in your own name, so tokens, disputes and history stay with you if you change provider. The case for that is in owning your payment stack.

Example: Wrenfield's first month

In its first month, Callum does four things, with invented effort estimates. He writes to Stripe to confirm SPT availability for a UK account (half a day including reading the preview terms). He adds the migration and the evidence model with tests (one day). He builds the service and the webhook with tests for the four failure cases (two days). He adds the Monday query to the release register's weekly checks (an hour). That is about three and a half days of work. Against it stands a dispute process that, for 14 token orders a month, now has a complete record behind every one of them.

Conclusion

An agent can pay. It does so with a token that only works for one shop, one amount and a short time, backed by an instruction the person approved and, in the best designs, by a signed record of exactly what they approved. The card networks, PSPs and protocols have built most of the machinery. What they have not settled is the law: whether an instruction approved on Monday authenticates a payment made on Wednesday is, as of November 2026, a question for issuers and regulators, and the EU's new payment rules are still on their way through Parliament.

So the shop's part is clear and modest. Accept the tokens your PSP supports, keep the path for a challenge open, label payments honestly, and store the evidence with a date to delete it. A later chapter of this series takes the next step and asks who pays when an agent buys the wrong thing or a fraudster uses one.

If agents are starting to buy from your shop and you want the payment path and the evidence trail built properly on Solidus, book the free workshop. We map it together, and the first two weeks of work are on me.

Sources

  1. 1.

    European Parliament and Council, Directive (EU) 2015/2366 on payment services in the internal market (PSD2), Articles 4(30), 64, 72, 74 and 97, EUR-Lex, https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:32015L2366

  2. 2.

    European Commission, Delegated Regulation (EU) 2018/389, regulatory technical standards for strong customer authentication and common and secure open standards of communication, Articles 5, 13, 14, 16, 18 and Annex, EUR-Lex, https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:32018R0389

  3. 3.

    The Payment Services Regulations 2017 (SI 2017/752), regulation 100, Authentication, legislation.gov.uk, https://www.legislation.gov.uk/uksi/2017/752/regulation/100

  4. 4.

    Financial Conduct Authority, Technical standards on strong customer authentication and common and secure methods of communication, Chapter III, Exemptions (Article 16 shown), FCA Handbook, checked 23 November 2026, https://handbook.fca.org.uk/techstandards/PS/2021/2021_01/chapter-iii/020.html

  5. 5.

    The Payment Services Regulations 2017 (SI 2017/752), regulation 77, Payer or payee's liability for unauthorised payment transactions, legislation.gov.uk, https://www.legislation.gov.uk/uksi/2017/752/regulation/77

  6. 6.

    Stripe, Strong Customer Authentication readiness (sections Monitor disputes and Collect permission to reuse cards), Stripe documentation, checked 23 November 2026, https://docs.stripe.com/strong-customer-authentication

  7. 7.

    European Banking Authority, Single Rulebook Q&A 2018_4031, answer prepared by the European Commission, published 1 March 2019, https://www.eba.europa.eu/single-rule-book-qa/qna/view/publicId/2018_4031

  8. 8.

    Visa, Visa Intelligent Commerce overview, Visa Developer, checked 23 November 2026, https://developer.visa.com/capabilities/visa-intelligent-commerce/overview

  9. 9.

    Visa, Visa Intelligent Commerce workflows, Visa Developer, checked 23 November 2026, https://developer.visa.com/docs/visa-intelligent-commerce/workflows

  10. 10.

    Mastercard, Level 1 Agentic Commerce: Enable Agent Support with Minimal Changes, Mastercard Developers, checked 23 November 2026, https://developer.mastercard.com/merchant-cloud/documentation/tutorials-and-guides/agentic-commerce-guide/21/

  11. 11.

    OpenAI and Stripe, Agentic Commerce Protocol repository, README and spec versions, GitHub, checked 23 November 2026, https://github.com/agentic-commerce-protocol/agentic-commerce-protocol

  12. 12.

    Agentic Commerce Protocol, Delegate Payment API, version 2026-04-17, openapi.delegate_payment.yaml, GitHub, checked 23 November 2026, https://github.com/agentic-commerce-protocol/agentic-commerce-protocol/blob/main/spec/2026-04-17/openapi/openapi.delegate_payment.yaml

  13. 13.

    Agentic Commerce Protocol, Checkout API, version 2026-04-17, openapi.agentic_checkout.yaml (InterventionCapabilities and message codes), GitHub, checked 23 November 2026, https://github.com/agentic-commerce-protocol/agentic-commerce-protocol/blob/main/spec/2026-04-17/openapi/openapi.agentic_checkout.yaml

  14. 14.

    Stripe, Shared payment tokens (seller view), Stripe documentation, checked 23 November 2026, https://docs.stripe.com/agentic-commerce/concepts/shared-payment-tokens

  15. 15.

    Google and contributors, Agentic Payment Protocol (v0.2) specification, AP2 repository, GitHub, checked 23 November 2026, https://github.com/google-agentic-commerce/AP2/blob/main/docs/ap2/specification.md

  16. 16.

    Google and contributors, AP2 releases (v0.2.0 published 28 April 2026), GitHub, https://github.com/google-agentic-commerce/AP2/releases

  17. 17.

    Google and contributors, AP2 Payment Mandate, constraints, GitHub, checked 23 November 2026, https://github.com/google-agentic-commerce/AP2/blob/main/docs/ap2/payment_mandate.md

  18. 18.

    Klarna, Agentic commerce, Klarna for business, checked 23 November 2026, https://www.klarna.com/international/enterprise/agentic-commerce/

  19. 19.

    European Parliament, Legislative Observatory, procedure file 2023/0210(COD), Payment services in the internal market, checked 23 November 2026, https://oeil.europarl.europa.eu/oeil/en/procedure-file?reference=2023/0210%28COD%29

  20. 20.

    The Payment Services Regulations 2017 (SI 2017/752), regulation 74, Notification and rectification of unauthorised or incorrectly executed payment transactions, legislation.gov.uk, https://www.legislation.gov.uk/uksi/2017/752/regulation/74

  21. 21.

    UK GDPR, Article 5, Principles relating to processing of personal data, legislation.gov.uk, https://www.legislation.gov.uk/eur/2016/679/article/5

  22. 22.

    Solidus, Payments and refunds, Solidus guides, checked 23 November 2026, https://guides.solidus.io/advanced-solidus/payments-and-refunds

  23. 23.

    Solidus, core/app/models/spree/core/state_machines/payment.rb, solidusio/solidus on GitHub, checked 23 November 2026, https://github.com/solidusio/solidus/blob/main/core/app/models/spree/core/state_machines/payment.rb

  24. 24.

    Solidus, migration adding customer_metadata and admin_metadata to orders, payments and other resources (Solidus v4.5.0, 19 February 2025), solidusio/solidus on GitHub, https://github.com/solidusio/solidus/blob/main/core/db/migrate/20250129061658_add_metadata_to_spree_resources.rb

  25. 25.

    Stripe, stripe-ruby README, Custom requests and per request configuration, GitHub, checked 23 November 2026, https://github.com/stripe/stripe-ruby

  26. 26.

    Stripe, Receive Stripe events in your webhook endpoint (signature verification), Stripe documentation, checked 23 November 2026, https://docs.stripe.com/webhooks

Shelter

I’m running the London Marathon for Shelter. Sunday 25 April 2027

My personal fundraiser. Shelter, the National Campaign for Homeless People Limited, registered charity 263710 (England and Wales) and SC002327 (Scotland), registered with the Fundraising Regulator.