I want to create a website where users have full access to each page only if they pay me a fee.
I don't know how to read a credit card, I would like to use paypal开发者_运维技巧 or something similar, but how ?
And I would need to pay some taxes or something because I'm getting money ?
Note: I'm not in US, I`m from Romania) ?
I suggest using a combination of Paypal and a DBMS. The work flow would be as such:
- Your customer should fill out a form, such as desired username and password.
- Your customer clicks a link that directs them to PayPal, or fills out their credit card information on your site (using Website Payments Pro).
Process transactions using PayPal's API. Here are some helpful developer links:
API Integration Summary
PayPal API Reference- Depending on your integration, PayPal will return with a
SUCCESS
orFAILURE
if your customer's payment was verified. - Depending on your integration, upon success, you can extract customer information, such as name, address, etc. and save it into your DBMS, including the customer's username and password.
- Now, whenever the customer re-visits your site, validate the customer by asking for their username/password.
Since you will only store customer credentials if the payment was verified, customers will only see pages if they have paid.
Without more specifics about your understanding of a web dev language, DBMS, PayPal, login/registering implementations, this could only be a general outline.
精彩评论