stripe
stripe copied to clipboard
Ability to add coupon and plan setup fee details to an order confirmation page
Question
Is it possible to display to the customer the following items without using metadata fields during checkout?
Plan Setup Fee Subscription Plan Amount Coupon Code name and the amount deducted.
Additional info
- Craft version: 3.5.16
- PHP version: 7.3.24
- Database driver & version: MySQL 8.0.22
- Plugin version: 3.2.2
- Is SCA and Stripe Checkout enabled?: Yes
Hi @williamhibberd Did you mean on the Stripe Payments Order?
Yes, a stripe payments order.
After a customer has purchased a subscription I would like to display all information to them on the success page. I am using the following to get the order
{% set number = craft.app.request.getParam('number') %}
{% set order = craft.enupalStripe.getOrderByNumber(number) %}
{% set subscription = order.getSubscription() %}
and outputting the following successfully
Date: {{ order.dateOrdered|date('d/m/y') }}
Name: {{ order.user }}
Email: {{ order.email }}
Total Paid: {{ order.totalPrice|currency('GBP') }}
Next Billing Date: {{ order.dateOrdered|date_modify('+1' ~ subscription.interval )|date('d/m/y') }}
However, I was wondering if I would be able to add
Plan Setup Fee:
Subscription Plan Amount:
Coupon Code:
Discount Added: