Answer the question
In order to leave comments, you need to log in
How to add a card when paying with paypal?
I am making a form to submit to " https://www.paypal.com/cgi-bin/websc " with the field "cmd"='_xclick'.
As a result, a button appears, redirects to the paypal site, but there I can’t select “pay by card via paypal”, but there is only an account login
Please tell me what needs to be added?
Here is the whole form:
$html = '<form action="'.$payNowButtonUrl.'" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="charset" value="utf-8">
<input type="hidden" name="business" value="'.$receiverEmail.'">
<input id="paypalItemName" type="hidden" name="item_name" value="'.$itemName.'">
<input id="paypalAmmount" type="hidden" name="amount" value="'.$price.'">
<input type="hidden" name="return" value="'.$returnUrl.'">
<input type="hidden" name="custom" value=\''.json_encode($customData).'\'>
<input type="hidden" name="currency_code" value="'.$currency.'">
<input type="submit" class="choose-btn" value="Pay now" />
</form>';
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question