composer require paypal/paypal-checkout-sdk 1.0.1 Necessaire ? a tester // acheteur de test : support@123ventes.com/loulou123 include ("reqSelectPaypal.php"); // --------------------------------------------------- // Paypal si modePaie=4 // --------------------------------------------------- echo ''; echo '
'; echo '
'; echo '
'; // --------------------------------------------------- // PREPARE // --------------------------------------------------- $totalTtcCde=str_replace(",", ".", $totalTtcCde); echo ''; if ($lg=='')$lg='FRA'; if ($lg=='FRA') $locale='fr_FR'; if ($lg=='ENG') $locale='us_US'; if ($lg=='ITA') $locale='it_IT'; if ($lg=='ESP') $locale='es_ESP'; if ($lg=='DEU') $locale='de_DE'; $return_url= 'https://' .$server. '/recap-paiement-faireMajRecap-1'; $cancel_url= 'https://' .$server. '/recap-paiement-faireMajRecap-1'; echo ''; echo ''; // --------------------------------------------------- // Bouton // --------------------------------------------------- // if ($codeOpe==="upCommentaire") { $paypalDebug=true; $paypalCommit=true; $paypalMerchant_id=''; $paypalSrc='https://www.paypal.com/sdk/js?client-id=' .$idPaypal. '¤cy=EUR&locale=' .$locale. '"&commit=' .$paypalCommit. '&debug=' .$paypalDebug; echo ''; // if (isset($debug[1]) && $debug[1] == '1' ) $debugMsg .='' .$paypalSrc. ' data-sdk-integration-source="button-factory" data-amount="' .$totalTtcCde. '"'; } else { dynamiqItemImage (0, 0, 'boutons', 'span', 'onClick="upCommentaire();"', 'bouton', 5, 'icones', '-textClass-','margin:auto; max-width:29%; margin-bottom:10px;'); echo '

'; } // --------------------------------------------------- // APPEL // --------------------------------------------------- include ("modePaie.formPaypal.appel.js"); echo '
'; echo '
'; echo '
'; ?>