Summary of changes
Breaking changes
New features
primer:payment-startis now preventable withabortPaymentCreation()andcontinuePaymentCreation()primer:payment-startsupports idempotency keys viacontinuePaymentCreation({ idempotencyKey })primer:vault-methods-updatenow includescvvRecapture- New
primer:payment-cancelevent for cancelled payments
Update payment handling
Before (v0):Update pre-payment validation
If you usedonPaymentPrepare to validate before payment, use primer:payment-start with preventDefault().
Before (v0):
Update vault handling
TheonVaultedMethodsUpdate callback is replaced by the primer:vault-methods-update event. Note the event name change (hyphen instead of colon before methods).
Before (v0):
Update payment methods handling
Before (v0):Event reference
Deprecation timeline
Callbacks continue to work in v1 as a fallback but will be removed in a future major version. Migrate to events now to avoid breaking changes later.See also
Events Guide
Updated event system overview
Events Reference
Full payload reference