Resource icon

[bd] Paygate: STRIPE 1.2.0

No permission to download
I'm glad you had FTP set to merge not replace, or you'd possibly have more than a bald patch .
Just one more question, please.

To do recurring payments, will I need to create this directory structure (?) to match the calls in the program:http://domain.com/xenforo/bdpaygate/callback.php?p=stripe. Where I upload the callback.php file from the installation of bdpaygate?

upload_2016-5-14_22-49-17.webp

Do I rename the file from callback.php to callback.php?p=stripe ???
 
Last edited:
What Stripe API version is everyone at? Looking at my Stripe account I've not upgraded my API forever, latest is
2016-07-06. I'm curious what the latest safe version maybe for anyone running this addon.
 
I've installed bd Paygate and bd Paygate: Stripe, but I don't know what to do next. When I go to "user upgrades" only the default Paypal payment gateway option appears.
 
Hello @xfrocks

My Stripe recurring payments never result in an automatic user upgrade

user receives this return after the callback


Screenshot on 9.21.2016 at 9.16.01 PM.webp

Webhook event log shows NOP as response

Screenshot on 9.21.2016 at 7.40.27 PM.webp

Screenshot on 9.21.2016 at 7.41.09 PM.webp

Can you provide any clues please

Happy to pay you for your time to resolve - Send me a Conversation/Private Message
 
Last edited:
My Stripe recurring payments never result in an automatic user upgrade

user receives this return after the callback
Yep i have the same issue. I usually get the email about the stripe payment and have to manually promote them to the new usergroup. Its a bit of a pain. Paypal ones(via standard paygate) goes through fine.
 
does this work with php 7? Running php 7.0.8 with curl 7.47.0
After payment is processed, I get forwarded to an empty white page at http://url/misc/stripe and it says
"An unexpected error occurred. Please try again later."

getting this error in server logs...
Error: Call to undefined function Stripe\Util\mb_detect_encoding() - library/bdPaygateStripe/3rdparty/lib/Util/Util.php:118
 
does this work with php 7? Running php 7.0.8 with curl 7.47.0
After payment is processed, I get forwarded to an empty white page at http://url/misc/stripe and it says
"An unexpected error occurred. Please try again later."

getting this error in server logs...
Error: Call to undefined function Stripe\Util\mb_detect_encoding() - library/bdPaygateStripe/3rdparty/lib/Util/Util.php:118
Looks like your server doesn't have PHP multibyte string support. Probably need to check with your hosting provider?
 
Looks like your server doesn't have PHP multibyte string support. Probably need to check with your hosting provider?

thank you for your help, added mastering support and that worked! The user was put in the correct user group and it all went successful.

I did add the line for shipping address value in checkout.php (thank you for that suggestion) and it worked great.
 
Great addon.

I have slightly modified mine to require a shipping address (I'd suggest making that an actual option in the config, as it's just a boolean).

If anyone else needs to do this, edit the file library/bdPaygateStripe/Processor/Checkout.php, around line 59, just add an extra argument of: data-shipping-address="true"

That's all you need to do, the shipping information will be displayed in your Stripe dashboard!

thank you for this
 
I've installed bd Paygate and bd Paygate: Stripe, but I don't know what to do next. When I go to "user upgrades" only the default Paypal payment gateway option appears.

ditto here. same thing. looks like there's no submit button being generated in the code, the stripe div and form is there though....

HTML:
 <div id="stripe"><form action="https://URL/misc/stripe" method="POST">
    <input type="hidden" name="itemId" value="user_upgrade|3|d2495|6" />
    <input type="hidden" name="cents" value="500" />
    <input type="hidden" name="currency" value="usd" />
    <input type="hidden" name="recurringInterval" value="1" />
    <input type="hidden" name="recurringUnit" value="year" />
    <input type="hidden" name="_xfToken" value="---" />
    <input type="hidden" name="redirect" value="https://URL/bdpaygate/callback.php?p=stripe&amp;returnUrl=https%3A%2F%2FURL%2Faccount%2Fupgrade-purchase" />
</form></div>
 
@xfrocks

I have one upgrade package thats configured as $9.95, but when i use stripe to pay for it, it processes the transaction at a penny less (9.94). It then fails to put the user in the right group, bdpaygate error log says

[ERROR] Invalid payment amount (accepted)

I can change the price of the package to 9.99 and it processes at 9.99, but putting it back to 9.95, it tries to process at 9.94.
 
ditto here. same thing. looks like there's no submit button being generated in the code, the stripe div and form is there though....

HTML:
 <div id="stripe"><form action="https://URL/misc/stripe" method="POST">
    <input type="hidden" name="itemId" value="user_upgrade|3|d2495|6" />
    <input type="hidden" name="cents" value="500" />
    <input type="hidden" name="currency" value="usd" />
    <input type="hidden" name="recurringInterval" value="1" />
    <input type="hidden" name="recurringUnit" value="year" />
    <input type="hidden" name="_xfToken" value="---" />
    <input type="hidden" name="redirect" value="https://URL/bdpaygate/callback.php?p=stripe&amp;returnUrl=https%3A%2F%2FURL%2Faccount%2Fupgrade-purchase" />
</form></div>
Do you by any chance have defer JS addon installed. That was an issue for me.
 
Do you by any chance have defer JS addon installed. That was an issue for me.
wow, that was it. :eek: is this something that can be put in the DeferJS exclusion list or is it a more fundamental conflict (I'll look at this later myself)

EDIT: It looks like adding checkout.js to DeferJS's blacklist actually doesn't solve that particular problem. Hm, I can live with DeferJS disabled for now I guess. Thanks for that tip!
 
Last edited:
wow, that was it. :eek: is this something that can be put in the DeferJS exclusion list or is it a more fundamental conflict (I'll look at this later myself)

EDIT: It looks like adding checkout.js to DeferJS's blacklist actually doesn't solve that particular problem. Hm, I can live with DeferJS disabled for now I guess. Thanks for that tip!
No problem, I was disabling defer anyways soon and I was getting the buttons just in a weird spot so I looked into it and noticed the JS wasn't loading right.
 
wow, that was it. :eek: is this something that can be put in the DeferJS exclusion list or is it a more fundamental conflict (I'll look at this later myself)

EDIT: It looks like adding checkout.js to DeferJS's blacklist actually doesn't solve that particular problem. Hm, I can live with DeferJS disabled for now I guess. Thanks for that tip!
Adding it to the blacklist should work though...
 
Top Bottom