Custom Payment

Jon C

<div id="paypal-button-container"></div>
<script src="https://www.paypal.com/sdk/js?client-id=AfdGzVdCOt7vrDZ1fgGr19DNdZuB5tjfOhL1Fi1zl3bU_qRV4PhhjObDlXWWLzr6WuAiGkdjzVNf872j&vault=true" data-sdk-integration-source="button-factory"></script>
<script>
  paypal.Buttons({
      style: {
          shape: 'rect',
          color: 'gold',
          layout: 'vertical',
          label: 'subscribe',
          
      },
      createSubscription: function(data, actions) {
        return actions.subscription.create({
          'plan_id': 'P-2A723953CY7958948L5GQQFY'
        });
      },
      onApprove: function(data, actions) {
        alert(data.subscriptionID);
      }
  }).render('#paypal-button-container');
</script>