What's new?
We added a new checkout.payment.dismissed event for Paddle.js. It's emitted when a customer dismisses the Apple Pay modal by closing it without paying, so you can track abandoned payments separately from declined ones.
We also changed Apple Pay on multi-page checkout to emit checkout.payment.failed when a payment fails after the customer authorizes it in the Apple Pay modal. Previously, no event was emitted after checkout.payment.initiated for some of these failures.
How it works
When a customer opens the Apple Pay modal at checkout, Paddle.js emits checkout.payment.initiated. If the payment is declined, checkout.payment.failed follows. Previously, there was no way to detect when the customer dismissed the Apple Pay modal by closing it without paying.
Now, you can listen for the checkout.payment.dismissed event emitted by Paddle.js. This is useful when you want to understand why Apple Pay payments don't complete. You could:
- Track checkout abandonment separately from payment failures
- Display a custom message inviting the customer to try again or choose another payment method
checkout.payment.dismissed is emitted in express checkout, for the Apple Pay button on one-page checkout, and for Apple Pay on multi-page checkout. It's emitted only before the customer authorizes the payment. If a customer closes the modal after a declined payment, you receive checkout.payment.failed only.
Examples
This example callback event is emitted when a customer closes the Apple Pay modal without paying.
{ "name": "checkout.payment.dismissed", "data": { "id": "che_01k9ppwfg7nkr1s47pntfe7x3s", "transaction_id": "txn_01k9ppwf885xk7azx0xgnp6kp1", "status": "ready", "custom_data": null, "currency_code": "USD", "customer": { "id": "ctm_01k9pq1gzbza1n86n4jef18sbp", "email": "sam@example.com", "address": { "postal_code": "10021", "region": "", "country_code": "US", "id": "add_01k9pq6e149abgqb42rsebvvfw", "city": "", "first_line": "" }, "business": null }, "items": [ { "price_id": "pri_01gsz8x8sawmvhz1pv30nge1ke", "price_name": "Monthly (per seat)", "product": { "id": "pro_01gsz4t5hdjse780zja8vvr7jg", "name": "AeroEdit Pro", "description": "Designed for professional pilots, including all features plus in Basic plus compliance monitoring, route optimization, and third-party integrations.", "image_url": "https://paddle.s3.amazonaws.com/user/165798/bT1XUOJAQhOUxGs83cbk_pro.png" }, "billing_cycle": { "interval": "month", "frequency": 1 }, "trial_period": null, "quantity": 1, "totals": { "subtotal": 30, "tax": 2.66, "total": 32.66, "discount": 0, "balance": 32.66, "credit": 0 }, "recurring_totals": { "subtotal": 30, "tax": 2.66, "discount": 0, "total": 32.66 } } ], "totals": { "subtotal": 30, "tax": 2.66, "total": 32.66, "discount": 0, "credit": 0, "balance": 32.66 }, "payment": { "method_details": { "type": "apple-pay" } }, "settings": { "display_mode": "inline", "theme": "light", "variant": "one-page" }, "recurring_totals": { "subtotal": 30, "tax": 2.66, "discount": 0, "total": 32.66, "balance": 32.66, "credit": 0 }, "upsell": { "transaction_id": "txn_01gzdn07vccpnwp1gwwnn2hy8r", "show_skip_button": true, "same_session": true } }}Next steps
This change is live in Paddle.js now, so you can start listening for checkout.payment.dismissed when you're ready. You can test this in your sandbox account.
You don't need to do anything to get the latest version of Paddle.js — we serve the latest version automatically.
Summary of changes
Paddle.js
Paddle.jsEmitted when a customer closes the Apple Pay modal without paying.
Now emitted when a payment fails after a customer authorizes it in the Apple Pay modal on multi-page checkout.