Forum Replies Created
-
AuthorPosts
-
August 24, 2020 at 5:57 pm in reply to: Subscriptions were supposed to stop after 3 payments and didn't stop #3172alexanderfoxcParticipant
Try to send a test webhook from Stripe Dashboard.
Make sure you have debugging enabled on Stripe Payments settings.
Go to https://dashboard.stripe.com/test/webhooks/, click on https://example.com/?asp_hook=test and click
Send test webhook...
button. Selectcustomer.subscription.updated
from the dropdown and clickSend test webhook
.Then go to Stripe Payments settings page and click “View Log”. You should see similar lines at the bottom of the log:
[08/24/2020 5:53:05 PM] – [Sub] Processing “customer.subscription.updated” hook.
[08/24/2020 5:53:05 PM] – [Sub] Searching for subscription sub_00000000000000
[08/24/2020 5:53:05 PM] – [Sub] FAILURE: Subscription not found. Aborting.Let me know if those are there.
alexanderfoxcParticipantHi.
Try to re-enter your keys again:
1. Delete current keys entered in on plugin settings page. Make sure all keys field are empty, then click “Save Changes”.
2. Copy keys from your Stripe Dashboard. Make sure you put corresponding keys to corresponding fields. E.g. “Publishable Key” from Stripe Dashboard should be in “Live Stripe Publishable Key” field on Stripe Payments Settings page. Click “Save Changes” when done.
August 21, 2020 at 11:22 pm in reply to: Subscriptions were supposed to stop after 3 payments and didn't stop #3167alexanderfoxcParticipantIndeed,
Subscription created
event should be followed byRegular payment made
event with the amount populated. And this event is delivered by a webhook.When Stripe can’t deliver several webhooks in a row, it sends you an email notifying about the issue. I assume you haven’t received those? Check your SPAM or JUNK email folders just in case.
Now let’s try to check if webhooks are OK. Go to here https://dashboard.stripe.com/webhooks and see if webhook URL is properly formed. It should be
https://example.com/?asp_hook=live
, whereexample.com
should be your website URL. If it’s correct, then try to access the URL. You should see following message:Empty Webhook data received.
. This means your webhook URL is correct and it can be accessed via browser at least.August 20, 2020 at 9:07 pm in reply to: Subscriptions were supposed to stop after 3 payments and didn't stop #3165alexanderfoxcParticipantHi.
Your website must be online and accessible in order for it to be able to receive webhooks from Stripe. Also webhooks must be properly configured as well. Last, but not least – your plan must be properly configured to be “$20 monthly for 3 months”.
What values are you using for your subscription plan so we can confirm that the correct parameters are being used to make it collect only 3 payments then stop?
If all the above is correct, then debug log should have some insights on what’s wrong. Also you can check subscriptions status by going to WP Dashboard -> Stripe Payments -> Subscriptions. Click any and see if there is anything useful available on events log.
August 17, 2020 at 10:54 pm in reply to: Unable to purchase a subscription plan – Invalid unit for paymentRequest() #3161alexanderfoxcParticipantHi.
The issue seems to be caused by Additional Payment Methods add-on. I was unable to reproduce it on my test server though. Can you please share a link to your website where your payment button is?
alexanderfoxcParticipantHi and thank you for your report.
This has been fixed in new version of Subscriptions add-on (2.0.20).
Please update it via WP Dashboard -> Updates and let me know if it fixed your issue.
Apologies for the inconveniences it caused.
alexanderfoxcParticipantDelete current Stripe Payments plugin you have installed. Then download the one from https://s-plugins.com/testing-version/ , install and activate it. And enable the new option as explained in my previous message.
Once new stable version of Stripe Payments is released (should be pretty soon), make sure to update your testing version to stable version via WP Dashboard when prompted.
alexanderfoxcParticipantHi Stoyan.
Bulgarian Lev (BGN) currency was added few versions back.
Update your Stripe Payments plugin to latest version and it should become available.
alexanderfoxcParticipantI have added a new option
Disable Security Token Check
to the testing version of the plugin. You can get it here https://s-plugins.com/testing-version/Enable it (Stripe Payments -> Settings, Advanced Settings tab, Experemintal Settings
section) and it should makeInvalid Security Token
issue go away. Since you’re using reCaptcha on your payment form, it’s okay to disable Security Token as reCaptcha acts as security token in this case.alexanderfoxcParticipantHi Jenniffer.
Looks like caching settings on your server prevent security token to be updated properly, which results in the error message your customer received.
I suggest you to disable
Prefetch Payment Popup Scripts
option on plugin settings page (Advanced Settings
tab).If this isn’t helping, you should configure your server not to cache payment popup page. Following URL mask should be excluded:
{yourwebsite.com}/?asp_action=show_pp
. This should prevent security token from being cached and not properly regenerating for each page visitor.alexanderfoxcParticipantPress F12 in your browser and see if there are any error messages in the browser Console.
Also clear your caching plugin cache (if you’re using any).
If all the above fails, try to install current testing version from this page https://s-plugins.com/testing-version/
Last, but not least – can you provide URL of the page where your payment button is so I could have a look at it myself?
alexanderfoxcParticipantHi.
After step 2, are the values processed on your backend somehow? If yes, then you can save those either into session or into database and then load them in asp_after_txn_callback.
alexanderfoxcParticipantI’ve created a small demo plugin which does what you want.
You can get it here https://github.com/Arsenal21/stripe-payments-enhancements/releases/download/0.0.9/asp-minimum-amount.zip
Install on your site and activate it.
You can adjust it for your needs by editing the code (it has instructions provided): https://github.com/Arsenal21/stripe-payments-enhancements/blob/0.0.9/asp-minimum-amount/asp-minimum-amount.php
alexanderfoxcParticipantHi Colin.
It’s not possible at the moment. You cannot set minimum product price, unless this is donation type product (where customer must enter amount manually).
As a workaround, you can improvise by constructing product price via variations only by enabling “Use variations only to construct final product price” option on “Variations” meta-box on product edit page. Then configure variations the way to achieve $5 minimum.
alexanderfoxcParticipantHi Dennie.
Are you using any caching plugins on your website? If so, can you try to clear the cache and make a test purshase to see if the issue goes away?
-
AuthorPosts