• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 490
  • Last Modified:

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

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
isoq
Asked:
isoq
  • 2
  • 2
1 Solution
 
JtRCommented:
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
 
JtRCommented:
0
 
isoqAuthor Commented:
Thanks but there's not enough information in the webservice sites
0
 
isoqAuthor Commented:

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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now