paypal simple code (js)

simple code

source http://paypal.github.io/JavaScriptButtons/ On utilise le simple champs id marchant d'un compte user de particulier.

Il faut le js https://www.paypalobjects.com/js/external/paypal-button.min.js

Récupérer le code http://paypal.github.io/JavaScriptButtons/ par ex:

<script 
    data-env="sandbox" 
    data-callback="http://commerce/callback" 
    data-currency="EUR" 
    data-amount="10" 
    data-name="Livres collection 1" 
    data-button="cart" src="https://www.paypalobjects.com/js/external/paypal-button-minicart.min.js?merchant=id marchant" async="async">
</script>

ou

<script 
    data-env="sandbox" 
    data-callback="http://commerce/callback" 
    data-name="Livres coll 2" 
    data-button="buynow" src="https://www.paypalobjects.com/js/external/paypal-button.min.js?merchant=id marchant" async="async"
></script>
logo drush