x

NEWBIE - Using PayPal to process payment and send payment notifications

Preface - Done a lot of work in HTML/CSS space.  Never used JSON/API/etc.  

THE ISSUE:

So I have a simple app developed just to test this out.  I would like to charge customers for it.  I have a business account in PayPal.  

My intention is to send the customers to PayPal to process payment and back to their editor to use the app once payment is completed.  I've seen other apps in the app store that do this.  

WHAT I THINK I KNOW:

- I will need to have my manifest.JSON do a redirect to PayPal

- I will need to implement some code in PayPal to send payment notification back to Weebly.

I just am not sure where to start.  I'm looking for an example of functioning code to perform this task so that I can modify it to meet my needs.  

Any help anyone is willing ot provide is welcome.  

THANKS!

1,695 Views
Message 1 of 3
Report
1 Best Answer

Best Answer

There are several ways PayPal can be integrated into an app, depending upon the UX you wish to provide your customers. You will need to develop the app and the integration with PayPal (or the payment gateway of your choosing).

We have some sample apps available on Github.com/weebly which demonstrating different types of Weebly apps:
* https://github.com/Weebly/faq-app

* https://github.com/Weebly/simple-table-app

* https://github.com/Weebly/counter-app

* https://github.com/Weebly/code-block-app

* https://github.com/Weebly/price-chart-app

* https://github.com/Weebly/call-out-box-app

* https://github.com/Weebly/tabs-app

* https://github.com/Weebly/team-cards-app

None of these are paid apps, so they do not contain any payment gateway implementation code.

Your app will need to implement OAuth2 Authorization Flow to handle app installations (for 95% of use cases, and absolutely if your app will be a paid app). We have a few client libraries you could use:

To be able to fully implement and understand security risks, I highly recommend having a working understanding of:

* HTTP Requests/Responses operate

* XML HTTP Requests (aka: AJAX) operate

* Understand web application security

If you do not have these skills, you might wish to seek out a developer who does to can ensure your app will be approved for publishing, and not introduce any risks to you or our customers.

View Best Answer >

1,678 Views
Message 2 of 3
Report
2 REPLIES 2

Best Answer

There are several ways PayPal can be integrated into an app, depending upon the UX you wish to provide your customers. You will need to develop the app and the integration with PayPal (or the payment gateway of your choosing).

We have some sample apps available on Github.com/weebly which demonstrating different types of Weebly apps:
* https://github.com/Weebly/faq-app

* https://github.com/Weebly/simple-table-app

* https://github.com/Weebly/counter-app

* https://github.com/Weebly/code-block-app

* https://github.com/Weebly/price-chart-app

* https://github.com/Weebly/call-out-box-app

* https://github.com/Weebly/tabs-app

* https://github.com/Weebly/team-cards-app

None of these are paid apps, so they do not contain any payment gateway implementation code.

Your app will need to implement OAuth2 Authorization Flow to handle app installations (for 95% of use cases, and absolutely if your app will be a paid app). We have a few client libraries you could use:

To be able to fully implement and understand security risks, I highly recommend having a working understanding of:

* HTTP Requests/Responses operate

* XML HTTP Requests (aka: AJAX) operate

* Understand web application security

If you do not have these skills, you might wish to seek out a developer who does to can ensure your app will be approved for publishing, and not introduce any risks to you or our customers.

1,679 Views
Message 2 of 3
Report

Thank you!  I may seek outside help/consultation to ensure security (especially for the first go round).  Great point.  I will review the documentation you provided.  Thanks again!.  

1,676 Views
Message 3 of 3
Report