Stripe causing double payments

Well done spotting that, Alan! Thanks for the additional info with the error you were seeing, and with your finding in the code.

Right, it should have been $intent. I don’t know why it said $charge… That would affect buy-now payments

I used $charge before but later changed it to $intent. I must have hit undo before saving, or I just zipped a previous version of the file. :expressionless:

Thank you very much for catching it. In my development site I had the right one, so I couldn’t spot it. I should have gone back to double-check the one in the zip. I guess no one else tried it with buy-nows, just subscriptions, that’s why only you saw it.

Okay. After changing it to $intent, how has it been working for you? :slight_smile:

Yes, it will be in the next version.

Great, thanks!

1 Like

We are getting less duplicate payments but they still spring up. For instance we just got this 9x (!!!) payment. Thankfully their bank refused the charge, but the customer was justifiably very upset.

The customer originally tried to purchase on September 20th using two different cards, call them A and B. All attempts failed. They tried again on October 12th using card B. A payment attempt was made against card A for 9x the amount.

Since it seems like the true cause is hard to find, can you add a sanity check on invoices so that there is never more than two items or more than 1 item not labeled “Trial period…”?

If I am correct, s2member never has more than two items on an invoice, and the only time there are two items are when one of them is labeled “Trial period…”

1 Like

Hi Alan.

9x! I edited this reply several times as I kept trying things lol… After much testing I think I found a way to reproduce this behavior… I’m looking at possible solutions now.

Thank you so much for your valuable feedback! I will post an update as soon as possible.

:slight_smile:

Thank you Christian! Did any of the possible solutions work out?

1 Like

Hi Christian, did any of the solutions you looked at fix the issue?

Hi!

Yes, I had tried several things, and finally arrived at one that isn’t too complex as some I attempted, but has worked fine in my tests.

I just published a Release Candidate, if you guys would like to try it. https://s2member.com/s2member-v201209-rc-release-candidate/

I would really appreciate your feedback! :slight_smile:

1 Like
1 Like

Hi Christian,

Sorry to revive this thread!

The problem seemed to be getting steadily better with your bug fixed. However in February, it started getting worse again. It’s like 3x what it was in Jan.

We always ask if they noticed anything strange in checkout, and one of them said this:

I believe this is the second time this has happened and I noticed a similar pattern. Once I subscribe it tells me that I put in the wrong card information, and then once I put it in the second time the purchase goes through and then the materials get unlocked.

Please let me know what details would be helpful to figure this out.

Hi Alan.

I’m glad it got better for a while! It seems you were experiencing a combination of things. At least we seem to be making progress. Let’s see now what this remaining thing is.

Could you show me the shortcode you’re using? So in my test I try reproducing exactly what you’re selling.

Do you know what card error message they got? there are so many possible ones…

From the card problems mentioned here, which ones do you think come closer to what happened to your clients? so I focus on those first. https://stripe.com/docs/testing#cards-responses

:slight_smile:

Thanks! I will message you directly.

1 Like