Jump to content
Sign in to follow this  
Corner

WHMCS Stripe gateway init JavaScript variable value change dynamically

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

Share this post


Link to post
Share on other sites
3 minutes ago, WHMCS Dan said:

Can you clarify which init variable you mean - Do you mean the stripe public key?

I mean amount variable.

Share this post


Link to post
Share on other sites
6 minutes ago, Corner said:

I mean amount variable.

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

Share this post


Link to post
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.

Share this post


Link to post
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.

Sign in to follow this  

  • 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