1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| function boutonPaiementPAYPAL($url_paypal, $email, $nom_article, $prix, $url_ok, $url_erreur, $devise){
echo "<form action=\"".$url_paypal."\" method=\"post\">\n"
."<input type=\"hidden\" name=\"cmd\" value=\"_xclick\">\n"
."<input type=\"hidden\" name=\"business\" value=\"".$email."\">\n"
."<input type=\"hidden\" name=\"item_name\" value=\"".$nom_article."\">\n"
."<input type=\"hidden\" name=\"amount\" value=\"".$prix."\">\n"
."<input type=\"hidden\" name=\"no_shipping\" value=\"1\">\n"
."<input type=\"hidden\" name=\"return\" value=\"".$url_ok."\">\n"
."<input type=\"hidden\" name=\"cancel_return\" value=\"".$url_erreur."\">\n"
."<input type=\"hidden\" name=\"no_note\" value=\"1\">\n"
."<input type=\"hidden\" name=\"currency_code\" value=\"".$devise."\">\n"
."<input type=\"hidden\" name=\"lc\" value=\"FR\">\n"
."<input type=\"hidden\" name=\"bn\" value=\"PP-BuyNowBF\">\n"
."<input type=\"image\" src=\"https://www.paypal.com/fr_FR/FR/i/btn/x-click-but5.gif\" border=\"0\" name=\"submit\" alt=\"Effectuez vos paiements via PayPal : une solution rapide, gratuite et sécurisée\">\n"
."<img alt=\"\" border=\"0\" src=\"https://www.paypal.com/fr_FR/i/scr/pixel.gif\" width=\"1\" height=\"1\">\n"
."</form>\n";
} |
Partager