Simple Membership Plugin › Forums › Simple Membership Plugin › Webhook for membership single payment?
- This topic has 5 replies, 2 voices, and was last updated 2 years ago by
The Assurer.
-
AuthorPosts
-
August 12, 2024 at 4:16 am #28627
Heidi
ParticipantWe have two membership levels – annual subscription and lifetime.
The subscription payments work perfectly – click the button, go to Stripe, Stripe uses the Webhook callback, member is registered, receives confirmation email, membership coordinator gets notification, the world is good.
We recently got a lifetime membership signup (!). The customer clicked the button, made the ($$$) payment in Stripe, payment went through, and then… crickets! No member was added, no email was sent, no notification…
The main difference I see is the webhook for the subscription, which, I guess (?) tells our WordPress site about the new subscription. However, I can’t add a webhook for a one-time payment!
Any ideas?
August 12, 2024 at 12:26 pm #28629The Assurer
ModeratorPlease turn on the SWPM debug logs, so that we can have a better idea of what’s going on, when this happens again.
In the meantime, you could manually add the forementioned new member, just to move things along.
For the lifetime member button, are you using a Buy Now button?
August 12, 2024 at 9:52 pm #28630Heidi
ParticipantThanks for the quick response!
1) I turned on the debug logs. (Note that this is an extremely infrequent purchase.)
2) We have added the member manually, but their onboarding flow is now a little awkward.
3) Yes, it’s a Stripe SCA Buy Now button. (I took a screenshot but don’t know how to attach it here.)
Looking more closely at the Buy Now button details (by clicking Edit), I note that there is no Stripe API ID field to associate with the Lifetime Membership Product in Stripe. Likewise, I see that in the Stripe Transactions page, all the regular memberships use the correct name associated with the product “Individual Membership,” but the payment for the Lifetime membership in the transaction list just has an ID code, no name. It seems that Stripe takes the money, gives it to us, then drops the transaction on the floor because it doesn’t have any context for the purchase.August 13, 2024 at 12:34 am #28631The Assurer
ModeratorDid you configure the API key details, as per the documentation?
https://simple-membership-plugin.com/sca-compliant-stripe-buy-now-button/Also, please ensure you are using the latest version of SWPM.
August 14, 2024 at 10:35 pm #28669Heidi
ParticipantYes, of course the API keys are associated with our account, which lets us get the payment from the user after purchase. These are the same keys used globally, for both Buy Now and subscription buttons.
The problem is that there doesn’t seem a way to link the Buy Now button in SWPM to the associated product in Stripe.
I am using version 4.5.1 of the plugin; according to the web site the latest version is 4.5.
August 16, 2024 at 12:53 am #28680The Assurer
ModeratorSince the problem was not caught, due to the debug logs being turned off, and this is an infrequent event; the only way to “move this along,” is if you can deliberately recreate the event, so that we can tell via the debug logs, if anything is amiss.
-
AuthorPosts
- You must be logged in to reply to this topic.