Reputation: 537
In the Paypal Checkout Experience in-context what I have to put in action? here:
<form id="myContainer" method="post" action=[?]></form>
"/checkout" doesn't work clearly! Thnaks!
Upvotes: 2
Views: 134
Reputation: 11987
something like this maybe.
<form id="myContainer" method="post" action="/checkout"></form>
<script>
window.paypalCheckoutReady = function () {
paypal.checkout.setup('9XKWYX3UHBPB2', {
environment: 'sandbox',
container: 'myContainer'
});
};
</script>
<script src="//www.paypalobjects.com/api/checkout.js" async></script>
<form method='post' id="myContainer"><input type="text" name="CHARGE" value="1"/><input type="submit"/><form>
or
<form id="myContainer" action="paypal_ec_redirect.php" method="POST">
<input type="hidden" name="PAYMENTREQUEST_0_AMT" value="10.00"> </input>
Upvotes: 2