File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ <div id =" paypal-button-container-P-5PT799148U8831139M22NQTQ " ></div >
2+ <script src =" https://www.paypal.com/sdk/js?client-id=ARJpggv6QnaXhloyXEkMFhoGvNyPhl8x717ZcXF67dt-p7ayQE6Xg7ksWzkTSl4xK-uKlmnuTUi2xD1K&vault=true&intent=subscription " data-sdk-integration-source =" button-factory " ></script >
3+ <script >
4+ paypal .Buttons ({
5+ style: {
6+ shape: ' pill' ,
7+ color: ' gold' ,
8+ layout: ' vertical' ,
9+ label: ' subscribe'
10+ },
11+ createSubscription : function (data , actions ) {
12+ return actions .subscription .create ({
13+ /* Creates the subscription */
14+ plan_id: ' P-5PT799148U8831139M22NQTQ'
15+ });
16+ },
17+ onApprove : function (data , actions ) {
18+ alert (data .subscriptionID ); // You can add optional success message for the subscriber here
19+ }
20+ }).render (' #paypal-button-container-P-5PT799148U8831139M22NQTQ' ); // Renders the PayPal button
21+ </script >
Original file line number Diff line number Diff line change 8787 - CV : portfolio/14-cv/README.md
8888 - Blog :
8989 - blog/index.md
90+ - Support :
91+ - support/50rs-button.md
9092
9193docs_dir : ./docs
9294
You can’t perform that action at this time.
0 commit comments