9 votes

How do I apply taxes to subscriptions with Stripe plugin?

I realise this is a bit of an old question, but I was faced with the same problem recently so I thought I'd document my solution here for anyone in the future that comes along needing to apply tax to ...
user avatar
  • 1,171
4 votes

Customizing Stripe payment form for Craft Commerce 2

The following code allows the customisation of the fields using Stripe Elements. This code will replace the payment form with gateway.getPaymentFormHtml({}). The thing to note here is this is ...
user avatar
4 votes
Accepted

Update billing details for a subscription

I've solved this in the past by just showing the payment sources, and allowing the user to delete existing payment sources: {% set paymentSources = craft.commerce.paymentSources....
user avatar
  • 1,171
2 votes
Accepted

paymentMethodID payment method id cannot be blank

Update: it looks like it was an issue with the secure cert on the site.  Once we got that updated, purchases are going through as normal.
user avatar
  • 197
2 votes

Guest user registration using Commerce 3

Commerce needs an actual user for subscriptions but you can make onboarding pretty simple by doing a couple things: Uncheck "Verify email addresses" in the CP under Settings -> Users -&...
user avatar
  • 6,477
2 votes

Customizing Stripe payment form for Craft Commerce 2

OK so here's how to go about it. On checkout, you'll need at minimum a form with the following elements: <form method="post" id="card-info"> <input type="hidden" name="action" value="...
user avatar
  • 608
2 votes

input fields in getpaymentformhtml auto click out of card holder information

The getPaymentFormHtml() method will output a huge chunk of code, including Stripe's iframe and all its nested fields and functionality - you can't simply wrap that in a label element and expect it to ...
user avatar
  • 3,959
1 vote
Accepted

Stripe order hangs when submitted

OK, this was caused by a simple oversight on my part. To simplify matters for anyone else trying to set up Stripe, here is your checklist: In your templates Verify that you are using the latest ...
user avatar
  • 471
1 vote

Guest user registration using Commerce 3

This can definitely be done, but I don't think it's possible to do it all in the same form without using a custom module to handle either creating the user programmatically and then submitting to the ...
user avatar
  • 1,171
1 vote

How to identify the recurring payments that happen after the initial subs creation payment the in Commerce Subs

Listen to the invoice.payment_succeeded webhook and check the billing_reason for subscription_cycle. Full answer here: https://stackoverflow.com/a/54165193/1215040 use craft\commerce\stripe\base\...
user avatar
  • 3,959

Only top scored, non community-wiki answers of a minimum length are eligible