お支払い再設定

<div id="paypal-button-container-P-63B071212J919331DMJPJGBI"></div>
<script src="https://www.paypal.com/sdk/js?client-id=AVfQlpEWb0VJrKnJ0PiEf2mkHBcbV5tny9Gj1Na904twTm7px8y7qvGP9D6a0fHsNlBYm4gT_yBvG1Ke&vault=true&intent=subscription" 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({
          /* Creates the subscription */
          plan_id: 'P-63B071212J919331DMJPJGBI'
        });
      },
      onApprove: function(data, actions) {
        alert(data.subscriptionID); // You can add optional success message for the subscriber here
      }
  }).render('#paypal-button-container-P-63B071212J919331DMJPJGBI'); // Renders the PayPal button
</script>