Skip to content

MobilePay

Everything specific to MobilePay. General behaviour lives with the layer it belongs to — see Gateway integration and Webhooks.

MobilePayGateway implements RecurringPaymentGatewayInterface only. It has no one-off payment path and no checkout sessions, so nothing routes through PaymentGatewayInterface::cancelPayment() or the session interfaces for it. Anything written about attempts superseding each other, checkout sessions or invoice handles is Frisbii's, not MobilePay's.

Webhook events

Event Action
recurring.agreement-activated.v1 Activates the agreement
recurring.agreement-expired.v1 Disables the agreement (EXPIRED)
recurring.agreement-rejected.v1 Disables the agreement (REJECTED)
recurring.agreement-stopped.v1 Disables the agreement (CANCELED)
recurring.charge-reserved.v1 Marks the payment AUTHORIZED
recurring.charge-captured.v1 Marks the payment CAPTURED
recurring.charge-canceled.v1 Marks the payment CANCELED
recurring.charge-failed.v1 Marks the payment FAILED and stores the failure reason
recurring.charge-creation-failed.v1 Marks the payment FAILED and stores the failure reason

An event outside this list is stored with status SKIPPED.

Register the endpoint and events with:

wp payment-hub mobilepay webhooks register

Dunning

MobilePay runs no dunning of its own, so every retry is ours — see Dunning and payment retries.

  • Webhooks — delivery, signature verification and idempotency
  • Configuration — the MobilePay environment variables