
06-13-2012, 11:13 AM
|
 |
Junior Member
|
|
Join Date: Jun 2012
Posts: 7
|
|
Custom payment gateways API
Hi sir/miss,
I'm currently doing third party payment integration. I alr follow the step at this link ( http://kb.ecwid.com/w/page/49187841/...). But i'm stuck during return back from payment gateway to ecwid.
What parameter that ecwid need when returning back?
Thanks.
|

06-13-2012, 04:33 PM
|
 |
Ecwid Team
|
|
Join Date: Oct 2011
Posts: 3,299
|
|
Hello,
We've just updated our 'Custom payment gateways' article and included the information regarding response fields in it. Please have a look:
http://kb.ecwid.com/w/page/49187841/...
It says:
Quote:
You don't need to emulate all API calls/fields there though, just the ones Ecwid uses. Here is a list of mandatory fields that must present in your custom gateway's response:- x_response_code
- x_response_reason_code
- x_trans_id
- x_invoice_num
- x_amount
- x_MD5_Hash
The first two (x_response_code and x_response_reason_code) affects the order status.
Of course, you may need to include some other fields except the listed above, depending on how your custom gateway processes payments and what data it returns. For example, if an error occurs and a transaction fails, you will probably need to pass error descriptions to Ecwid from your scripts. For the details, please refer to the Authorize.Net documentation mentioned above.
By the way, regardless of the fact that a custom information isn't included in the six listed fields, it is successfully saved by Ecwid before sending a customer to payment gateway. Thus even if you don't include a customer info in payment responses, it will be saved among the other order information in Ecwid.
|
|
|
The Following User Says Thank You to Makfruit For This Useful Post:
|
|

06-21-2012, 10:12 AM
|
 |
Junior Member
|
|
Join Date: Jun 2012
Posts: 10
|
|
Wrong URL error
Hi,
I'm trying to add my url to custom payment method like in KB, but get Wrong URL error for it.
|

06-21-2012, 11:42 AM
|
 |
Ecwid Team
|
|
Join Date: Oct 2011
Posts: 3,299
|
|
Quote:
Originally Posted by Vladimir Y.
Hi,
I'm trying to add my url to custom payment method like in KB, but get Wrong URL error for it.
|
Hello,
Thank you for your message. I am investigating the issue at the moment. I'll get back to you soon.
UPDATE:
I've found out the reason of issue. The URL you're trying to set is not available (it doesn't respond). When you enters it in your Ecwid control panel, Ecwid checks it and a time out error occurs. That's why the 'Wrong URL' message appears.
As far as I understand, you've limit access to your gateway for some particular IP addresses. The thing is the IP that an HTTP request is came from is not constant, it changes with time.
In order to fix the issue, you'll need to make your gateway URL publicly accessible. Please let us know if you need any further assistance.
Last edited by Makfruit; 06-21-2012 at 12:46 PM.
|

06-21-2012, 01:35 PM
|
 |
Junior Member
|
|
Join Date: Jun 2012
Posts: 10
|
|
Thanks, but I still need your help.
We allowed all src to that port, and I then checked access behind our intranet, it's accessible, but not from Ecwid. Error is still present.
Also our tcpdump doesn't detect any traffic when I'm trying to add address and Ecwid, as you said, makes request.
|

06-22-2012, 07:01 AM
|
 |
Ecwid Team
|
|
Join Date: Oct 2011
Posts: 3,299
|
|
Vladimir,
Sorry but the URL still doesn't respond. Please check it.
|

06-26-2012, 09:14 AM
|
 |
Ecwid Team
|
|
Join Date: Oct 2011
Posts: 3,299
|
|
Vladimir,
I'd like to inform you of the last updates on the matter. The thing is there were some issues in endPoint URL validation. We've fixed them. Please refer to this thread for the details:
http://www.ecwid.com/forums/showthread.php?p=55385
I hope it helps you. Please, however, make sure your endPoint URL responds, otherwise your custom payment method may work improperly.
|
|
The Following User Says Thank You to Makfruit For This Useful Post:
|
|

06-26-2012, 10:46 AM
|
 |
Junior Member
|
|
Join Date: Jun 2012
Posts: 10
|
|
Matvey,
Thanks a lot, everything works now!
|

06-27-2012, 03:14 PM
|
 |
Junior Member
|
|
Join Date: Jun 2012
Posts: 10
|
|
Hi Matvey,
I'm trying to emulate Authorize.net and receive x_line_item product parameter, but there is only one product at there, even if I order 3 different products - only one appears as that parameter value.
Best regards,
Vladimir
|

06-27-2012, 04:07 PM
|
 |
Ecwid Team
|
|
Join Date: Sep 2009
Posts: 11,009
|
|
Quote:
Originally Posted by Vladimir Y.
Hi Matvey,
I'm trying to emulate Authorize.net and receive x_line_item product parameter, but there is only one product at there, even if I order 3 different products - only one appears as that parameter value.
Best regards,
Vladimir
|
Vladimir,
Please refer to this thread for the solution: http://www.ecwid.com/forums/showthread.php?p=46154
|
|
The Following User Says Thank You to Qetzal For This Useful Post:
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT. The time now is 04:28 AM.
Powered by vBulletin® Version 3.8.6. Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
|