Jump to content

Gateway function paddle_link help


Davor

Recommended Posts

Hello,

I'm trying to make my Paddle Gateway to work.

In Paddle sandbox it works but when I change to production I'm an error "Something wrong"

The problem is in this that I need to change this code:

$htmlOutput .= '<form style="width:50px;margin-top:10px;" method="get" action="https://checkout.paddle.com/checkout/custom/abc123...">';
$htmlOutput .= '<input type="submit" value="Subscribe" />';
$htmlOutput .= '</form>';

To as they say in documentation and also as the support is telling:

"pass the URL into Paddle.js using the override parameter.

<a href="#!" class="paddle_button" data-override="https://checkout.paddle.com/checkout/custom/abc123...">Buy Now!</a>

 

Here is the link to this docs on Paddle help:

https://developer.paddle.com/guides/how-tos/checkout/pass-parameters#generating-pay-link-via-api

 

Does anyone have an idea how to build the $htmlOutput?

Thanks,

Davor

 

Link to comment
Share on other sites

  • 5 months later...

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.

×
×
  • 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