Rediriger l'acheteur vers la page de paiement
L’URL de la plateforme de paiement est la suivante :
Exemple de paramètres envoyés à la plateforme de
paiement:
<form method="POST" action="https://sogecommerce.societegenerale.eu/vads-payment/"> <input type="hidden" name="vads_action_mode" value="INTERACTIVE" /> <input type="hidden" name="vads_amount" value="12500" /> <input type="hidden" name="vads_ctx_mode" value="TEST" /> <input type="hidden" name="vads_currency" value="978" /> <input type="hidden" name="vads_cust_country" value="FR" /> <input type="hidden" name="vads_cust_email" value="me@example.com" /> <input type="hidden" name="vads_insurance_amount" value="500" /> <input type="hidden" name="vads_nb_products" value="2"/> <input type="hidden" name="vads_order_id" value="CMD012859" /> <input type="hidden" name="vads_page_action" value="PAYMENT" /> <input type="hidden" name="vads_payment_cards" value="PAYPAL_SB;PAYPAL" /> <input type="hidden" name="vads_payment_config" value="SINGLE" /> <input type="hidden" name="vads_product_amount0" value="5000" /> <input type="hidden" name="vads_product_label0" value="product1" /> <input type="hidden" name="vads_product_qty0" value="2" /> <input type="hidden" name="vads_product_ref0" value="ref1" /> <input type="hidden" name="vads_product_amount1" value="1000" /> <input type="hidden" name="vads_product_label1" value="product2" /> <input type="hidden" name="vads_product_qty1" value="1" /> <input type="hidden" name="vads_product_ref1" value="ref2" /> <input type="hidden" name="vads_ship_to_first_name" value="Albert" /> <input type="hidden" name="vads_ship_to_last_name" value="Durant" /> <input type="hidden" name="vads_ship_to_phone_num" value="0556123456" /> <input type="hidden" name="vads_ship_to_state" value="Nouvelle aquitaine" /> <input type="hidden" name="vads_ship_to_street_number" value="2" /> <input type="hidden" name="vads_ship_to_street" value="Rue Sainte Catherine" /> <input type="hidden" name="vads_ship_to_zip" value="33000" /> <input type="hidden" name="vads_ship_to_city" value="Bordeaux" /> <input type="hidden" name="vads_ship_to_country" value="FR" /> <input type="hidden" name="vads_shipping_amount" value="500" /> <input type="hidden" name="vads_site_id" value="12345678" /> <input type="hidden" name="vads_trans_date" value="20190626101407" /> <input type="hidden" name="vads_trans_id" value="362812" /> <input type="hidden" name="vads_tax_amount" value="500" /> <input type="hidden" name="vads_version" value="V2" /> <input type="hidden" name="signature" value="NM25DPLKEbtGEHCDHn8MBT4ki6aJI/ODaWhCzCnAfvY="/> <input type="submit" name="payer" value="Payer"/> </form>