Jump to content

WHMCS Stripe gateway init JavaScript variable value change dynamically


Corner

Recommended Posts

Hello,
I need to change WHMCS stripe gateway init JavaScript variable(See attached) in checkout page without reload page.
If I reload the checkout page , JavaScript variable then have correct value, but I need that option without checkout page  refresh.

strippe-init.png

Link to comment
Share on other sites

24 minutes ago, WHMCS Dan said:

This will be set based on the order value, can you provide further details on why you need to change this?

Hi Dan,

I understand that this will be set based on the order value.

Basically I'm trying to develop a One Page Cart for my company. What I'm trying to do is I'm trying to land directly to the Cart Checkout Page for example https://whmcs.url/cart.php?a=checkout where I do not have anything in my cart initially and I see all the products in this page and once I add a product to my cart and checkout using Stripe Demo Card, it does not make the payment but places the order and takes me to unpaid invoice.

But if I come to https://whmcs.url/cart.php?a=checkout by adding a product from https://whmcs.url/cart.php and checks out then I see successful payment and paid invoice.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated