How to create web payment system using PHP [closed]

4

I would like to create an e-commerce, but I do not have much knowledge about it. And I still have the following doubt.         How to create a payment system via ticket or card, is there any framework or API that offers the service ?, if there is an attachment to the site ?.          How to launch tickets ?, is there a framework to assist in the creation of tickets in pdf, these should have a fiscal validation?

    
asked by anonymous 11.08.2014 / 21:53

3 answers

9

Well, there are several questions, come on:

  

How to create a payment system via ticket or card, there is some   framework or company that offers the service?

Via ticket, it's easy, talk to your manager so he can give you some numbers that you'll use. Some banks provide the example code to create the ticket, I did once with the Federal Savings Bank. You can also search for an external solution, I came to see but did not use: link . The tickets usually have a deadline to confirm receipt after paid and do not expect to be as short as that of large stores, when I did for example took 2 to 5 days depending on a lot of things.

Card is more complicated, you talk to the card operator you are going to receive, it usually involves a transaction, you send a data packet, the operator's server responds, you send another confirming or with some other data, and finally , receives the finalization.

  

If there is an attachment to the site?

In the case of tickets, record the identification of the ticket in the information of open payments, in the case of card, usually payment is in the act, but there may be a different treatment that I do not know, will depend on the operator. You can use "our number" and "document number" to identify the ticket. The "our number" is unusual for identifying each ticket, but in my case I had to use it.

  

How to post tickets?

It sends the values to the application that generates them and it generates, without any complications, but there is also no registration, you should register in your code.

  

, there is some framework to aid in the creation of pdf,   should these have a fiscal validation?

Yes, example in the answer to the first question but not in PDF, it is not necessary. There are also paid solutions, super easy to find on Google, looking for "online ticket" appear various solutions. You do not need tax validation, but a word from your manager is recommended. For example, for what I developed for use in the box, we generated three tickets together with the manager and checked if everything was valid.

    
11.08.2014 / 22:17
4

Dude, try to use the services like the pagseguro or the paid market, in it you leave the issue of receipt (cards, tickets, etc) on their account, and both provide a webservice to follow the status of your payments and the necessary scripts for integration.

    
11.08.2014 / 22:16
1

They talked about the payout and paid market, but forgot about PayPal and TrayCheckout , I think it's more business to outsource this issue with these payment gateways, sometimes on the websites of these companies there is a developers session, which explains how to use the api of your services. paypal for example is here at this paypal dev link.

As for frameworks, use anyone who feels comfortable, frameworks are generic to virtually any system, you just need to find a good payment gateway and communicate with api's using a framework, or make in the hand, example frameworks: zend , codeigniter , cake ...

    
11.08.2014 / 23:13