Solved

Using PHP, how do I send a generated key to payment provider server via HTTP?

Posted on 2010-09-02
4
471 Views
Last Modified: 2012-05-10
Dear Experts,

I am testing payment providers (to sell software), and I've seen that both e-junkie and SWREG work in a similar way about the key generator. I am referring to a key generator like Armadillo (but it's hosted in my site).
This is how it works:
1- The payment provider server sends to my online keycode program a list of strings (data about a specific purchase).
2- There is a PHP page in my sites that captures this data.
3- After that, my key generator is executed and the output will be a customer's key license.
4- The payment provider captures this key license (sent to console) and embed it into the receipt email the customer receives.

So what's the PHP function I must use to send the result (the generated key) back to the payment provider's server? I'm not sure if it's a simple "echo" or I must use something like "curl".

Any hint will be very appreciated.


0
Comment
Question by:isoq
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 3

Expert Comment

by:JtR
ID: 33588317
best you check the webservice specifications of swreg and e-junkie ;)

normally there is a documentation about HOW to communicate with the payment systems.
0
 
LVL 3

Expert Comment

by:JtR
ID: 33588330
0
 

Author Comment

by:isoq
ID: 33590022
Thanks but there's not enough information in the webservice sites
0
 

Accepted Solution

by:
isoq earned 0 total points
ID: 33615696

Command 'print' is enough.
Additionally, a .htaccess file would restrict that only the payment provider's servers can execute my PHP file.

That's the solution
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
PHP substring 3 54
XML loaded in a form with dropdown 6 57
Code not executing correctly. 3 44
How to close my php post page. 3 42
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
SSL stands for “Secure Sockets Layer” and an SSL certificate is a critical component to keeping your website safe, secured, and compliant. Any ecommerce website must have an SSL certificate to ensure the safe handling of sensitive information like…
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question