-
Website
http://www.phpfour.com/blog -
Original page
http://www.phpfour.com/blog/2009/02/php-payment-gateway-library-for-paypal-authorizenet-and-2checkout/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
robskils
1 comment · 1 points
-
joshsharp
1 comment · 1 points
-
nirjhar
1 comment · 1 points
-
Nhm Tanveer Hossain Khan
1 comment · 1 points
-
cubanhenry5
1 comment · 1 points
-
-
Popular Threads
excellent writing, carry it on
Thanx
if fail ---> How can i rollback Mysql update?
Thank you!
Thank's though I'll monitor your page. I should be subscribed to your RSS too.
In short I didn't get a chance to even look at the library yet although was planning to do so last week. I monitor your page and if you come up with something sooner that'll be cool. If i happen to finish my part first i'll send you my updates to see if that'll be helpful for you.
Thanks
but if i did , i will share it with you :D
IPN Response from gateway Server: is blank.
I'm lost. Testing gives me a:
An error occurred while trying to report this transaction to the merchant. An e-mail has been sent to the merchant informing them of the error. The following is the result of the attempt to charge your credit card.
This transaction has been approved.
It is advisable for you to contact the merchant to verify that you will receive the product or service.
at the secure.authorize.net page.
The merchant gets a receipt...the buyer gets a receipt...so everything appears to be working except I receive no e-mail informing me of the error, no IPN response from gateway Server, and i cannot get to my receipt page. Please help...Please!!
I did a search on the net and it seems a few other people have faced similar error. One of them contacted authorize.net and here goes their response:
"Greetings from Authorize.Net!
When Authorize.Net is responding back to a script on your server our system waits 10 seconds for a response. If we do not get a response in 10 seconds, our server will time out and display an error page. In this case the customer will see the transaction results on an error page that Authorize.net generates.
If this happens we will either send an email to you indicating: "An error occurred while trying to report this transaction to the merchant. An email has been sent to the merchant informing them of the error. The following is a result of the attempt to charge your credit card"
or
The transaction will be declined within your Merchant Interface. The transaction detail will display (Unable to send notification to Customer).
If the customer closes the browser window before we receive data from your script to print to the screen we will change the transaction response reason code to 52.
To prevent these errors the first thing that you will need to look for is the order that your script executes. It is very important that something is printed to the screen before any other process is started. If your script prints to the screen first, we will recognize that you have received the transaction results.
To resolve this issue:
- Before doing anything else start writing to your receipt page. For example: print your page headers and the first part of the page body.
- Check that your script permissions are correct and that it can accept an HTTPS POST.
- Check that the script is not completing other functions before writing to the screen, such as writing to a database or sending emails.
- Please check to see if there are different processes that are used in your script for approvals, declines, or errors. Check each process to be sure that they will write to the screen before any other functions.
- Verify that your script is not using redirects upon receipt of the response from our servers. Redirects strongly are discouraged because they can potentially interfere with the process."
I think you might as well get in touch with them. Let me know if it gets resolved.
Thanks
I am experiencing just one problem, i am testing paypal local with sandbox, text file for ipn isn't created, do you think it is because i am not over internet with my website?
Thanks!
Regards,
Sean
Just starting to review your work, but I believe it will save me a load of time.
Thanks again
And hope the google checkout will be released!
Google checkout would be among my wish list as would Nochex. Nochex is great for UK sellers like me, though it hard to work with.
More on this soon as I may release it when finalized and 100% stable.
Question:
in the Paypal version you have:
$myPaypal->addField('custom', 'muri-khao');
How do we get that custom value back in the IPN?
Because when someone has paid obiviously I want to update X but I dont see how to get that value back.
Could you please give us more details? Which file needs to be modified so that the $myPaypal->ipnData['custom'] can be shown to the customer. Thank you!
Best regards,
Jack
parent::__construct();
// Some default values of the class
$this->gatewayUrl = 'https://www.paypal.com/cgi-bin/webscr';
$this->ipnLogFile = 'paypal.ipn_results.log';
// Populate $fields array with a few default
$this->addField('rm', '2'); // Return method = POST
$this->addField('cmd', '_cart');
$this->addField('upload', '1');
}
then when you add items just append _# to the tags with # being the line item you're working with
nice base class for paypal with the skeleton in place... was a great starting point for what I'm working on...
thanks for the great start
I don't understand how send multiple items with this change ... pls can you explain me with a very little code example.
thanks
Thanks
goo job i need this, but for me this script just on the halfway...
i must modded it to be used with zend framework
Could you please shed me some light on how to echo the custom value in the success page?
// Specify any custom value
$myPaypal->addField('custom', 'muri-khao');
I just want to let the customer see the custom value after he returns from PayPal to the success notification page. Thanks again!
echo $myPaypal->ipnData['custom'];
can you please provide me authorize.net developer account credentials..
if yes then please mail it to me, if you don't want to post it here
that will be gr8 help
thanks, and thanks again for this amazing work
I took your tool as a infrastructure for my payment system.
please help me?
Thank you very much indeed,