Skip to content

Commit

Permalink
feat(support): support button
Browse files Browse the repository at this point in the history
  • Loading branch information
tolstenko committed Aug 8, 2024
1 parent 1eb2eb5 commit 7cad0d7
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
21 changes: 21 additions & 0 deletions docs/support/50rs-button.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<div id="paypal-button-container-P-5PT799148U8831139M22NQTQ"></div>
<script src="https://www.paypal.com/sdk/js?client-id=ARJpggv6QnaXhloyXEkMFhoGvNyPhl8x717ZcXF67dt-p7ayQE6Xg7ksWzkTSl4xK-uKlmnuTUi2xD1K&vault=true&intent=subscription" data-sdk-integration-source="button-factory"></script>
<script>
paypal.Buttons({
style: {
shape: 'pill',
color: 'gold',
layout: 'vertical',
label: 'subscribe'
},
createSubscription: function(data, actions) {
return actions.subscription.create({
/* Creates the subscription */
plan_id: 'P-5PT799148U8831139M22NQTQ'
});
},
onApprove: function(data, actions) {
alert(data.subscriptionID); // You can add optional success message for the subscriber here
}
}).render('#paypal-button-container-P-5PT799148U8831139M22NQTQ'); // Renders the PayPal button
</script>
2 changes: 2 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ nav:
- CV: portfolio/14-cv/README.md
- Blog:
- blog/index.md
- Support:
- support/50rs-button.md

docs_dir: ./docs

Expand Down

0 comments on commit 7cad0d7

Please sign in to comment.