#1  
Old 06-13-2012, 11:13 AM
OtaiWeb Crewx Freelancer's Avatar
OtaiWeb Crewx Freelancer OtaiWeb Crewx Freelancer is offline
Junior Member
 
Join Date: Jun 2012
Posts: 7
Lightbulb 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.
Reply With Quote
  #2  
Old 06-13-2012, 04:33 PM
Makfruit's Avatar
Makfruit Makfruit is online now
Ecwid Team
 
Join Date: Oct 2011
Posts: 3,116
Default

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.
__________________
Matvey Kuritsyn
Ecwid Team

‣ Find ready answers, demos, tips and tricks and more in Ecwid Help Center

‣ Check out Ecwid video tutorials or share your own tutorial with us

---
⇩ Click Thanks, please, if this reply helped you.
Reply With Quote
The Following User Says Thank You to Makfruit For This Useful Post:
Qetzal (06-13-2012)
  #3  
Old 06-21-2012, 10:12 AM
Max White.'s Avatar
Max White. Max White. is offline
Junior Member
 
Join Date: Jun 2012
Posts: 10
Exclamation 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.
Reply With Quote
  #4  
Old 06-21-2012, 11:42 AM
Makfruit's Avatar
Makfruit Makfruit is online now
Ecwid Team
 
Join Date: Oct 2011
Posts: 3,116
Default

Quote:
Originally Posted by Vladimir Y. View Post
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.
__________________
Matvey Kuritsyn
Ecwid Team

‣ Find ready answers, demos, tips and tricks and more in Ecwid Help Center

‣ Check out Ecwid video tutorials or share your own tutorial with us

---
⇩ Click Thanks, please, if this reply helped you.

Last edited by Makfruit; 06-21-2012 at 12:46 PM.
Reply With Quote
  #5  
Old 06-21-2012, 01:35 PM
Max White.'s Avatar
Max White. Max White. is offline
Junior Member
 
Join Date: Jun 2012
Posts: 10
Default

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.
Reply With Quote
  #6  
Old 06-22-2012, 07:01 AM
Makfruit's Avatar
Makfruit Makfruit is online now
Ecwid Team
 
Join Date: Oct 2011
Posts: 3,116
Default

Vladimir,

Sorry but the URL still doesn't respond. Please check it.
__________________
Matvey Kuritsyn
Ecwid Team

‣ Find ready answers, demos, tips and tricks and more in Ecwid Help Center

‣ Check out Ecwid video tutorials or share your own tutorial with us

---
⇩ Click Thanks, please, if this reply helped you.
Reply With Quote
  #7  
Old 06-26-2012, 09:14 AM
Makfruit's Avatar
Makfruit Makfruit is online now
Ecwid Team
 
Join Date: Oct 2011
Posts: 3,116
Default

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.
__________________
Matvey Kuritsyn
Ecwid Team

‣ Find ready answers, demos, tips and tricks and more in Ecwid Help Center

‣ Check out Ecwid video tutorials or share your own tutorial with us

---
⇩ Click Thanks, please, if this reply helped you.
Reply With Quote
The Following User Says Thank You to Makfruit For This Useful Post:
Max White. (06-26-2012)
  #8  
Old 06-26-2012, 10:46 AM
Max White.'s Avatar
Max White. Max White. is offline
Junior Member
 
Join Date: Jun 2012
Posts: 10
Default

Matvey,

Thanks a lot, everything works now!
Reply With Quote
  #9  
Old 06-27-2012, 03:14 PM
Max White.'s Avatar
Max White. Max White. is offline
Junior Member
 
Join Date: Jun 2012
Posts: 10
Default

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
Reply With Quote
  #10  
Old 06-27-2012, 04:07 PM
Qetzal's Avatar
Qetzal Qetzal is offline
Ecwid Team
 
Join Date: Sep 2009
Posts: 11,009
Default

Quote:
Originally Posted by Vladimir Y. View Post
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
__________________
Eugene Kaznacheev
Ecwid Team

@ecwid | Facebook Page | Ecwid Knowledge Base
Reply With Quote
The Following User Says Thank You to Qetzal For This Useful Post:
Max White. (06-29-2012)
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:06 PM.
Powered by vBulletin® Version 3.8.6. Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.