Results 1 to 7 of 7
  1. #1
    Join Date
    Apr 2010
    Posts
    9
    Plugin Contributions
    0

    Default Payment Module and XML?

    Zencart Version: 1.3.9h
    First time user of Zen Cart
    No add ons installed on the system yet

    Challenge:
    I am trying to build a payment gateway module using the Authorize.net structure. I am not sure how to do it as the module uses arrays to submit data to the payment gateway. The requirement for the new payment gateway requires we send payment information using XML. Is there an example of using XML?

    Is there a way to debug to see what the contents of the delivery would be prior to sending to the payment gateway so that I can check that what is sent is actually XML and not an array of info?

    I am new to PHP and a neophyte to Zen Cart. I appreciate all the help you can give.

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Payment Module and XML

    Zen-Venom Get Bitten

  3. #3
    Join Date
    Apr 2010
    Posts
    9
    Plugin Contributions
    0

    Default Re: Payment Module and XML?

    Thank you. The EWay trick seems to allow me to communicate with the destination. However, I am always getting back an invalid request. I have asked the other party if what I am sending in an XML is correct. Via e-mail, they said the XML is perfect. Via online, I get invalid request. Somewhere, I may not be doing my XML correctly(?).

    Is there a way to create a receiving website just to test echo the XML?

    Thanks in advance

  4. #4
    Join Date
    Apr 2010
    Posts
    9
    Plugin Contributions
    0

    Default Re: Payment Module and XML?

    I guess there was a bit of information that was not emphasized in the requirements. Though the rest of the string is in XML format, the CURL_SETOPT,POSTFIELD should still have &var=$xml_string format.

  5. #5
    Join Date
    Apr 2010
    Posts
    9
    Plugin Contributions
    0

    Default Redirection and 2nd XML response

    I am trying to create a payment module and the requirement flow is as follow:
    a. send request xml
    b. receive response xml
    c. redirect to external payment site where client enters payment info
    d. payment site will redirect to my website checkout_payment and they require me to receive 2nd xml

    My questions are:
    a. How to redirect to external payment site (yes, the payment site has provided me the secured URL)?
    b. How to receive an XML the second time around since it is not some thing I initiated?

    Are there examples of this scenario?

  6. #6
    Join Date
    Jun 2003
    Posts
    33,720
    Plugin Contributions
    0

    Default Re: Payment Module and XML?

    Moderator's note - your 2 threads have been merged into one since they are closely related.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  7. #7
    Join Date
    Apr 2010
    Posts
    9
    Plugin Contributions
    0

    Default Re: Payment Module and XML?

    An Update:

    I am able to fulfill all requirements except for receiving responses after redirection. But here is the summary of the flow of what I have done:

    a. create an XML string
    b. set cURL to pass in the XML string using the format &parm=<XML string>
    c. receive the response from cURL
    d. parse the response from cURL
    e. use the URL specified in the response for redirection
    f. redirect using PHP's header command and follow it with a die command
    g. user will input the info requested in the redirected payment screen.
    h. payment gateway will redirect the screen back to the client and response sent
    i. Read and parse response.

    It is step i, that I need assistance.

    Looking forward to anyone's suggestions.

 

 

Similar Threads

  1. v150 PsiGate XMl Payment Module - not handling error messages properly
    By mike_m29 in forum Addon Payment Modules
    Replies: 1
    Last Post: 9 Feb 2013, 05:24 PM
  2. Payment Module that generates XML-based data?
    By Liquid Inc. in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 13 Aug 2008, 07:09 PM
  3. RSS Module: XML Parsing Error: xml declaration not at start of external entity
    By Slash74 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 14 May 2008, 12:40 PM
  4. Most recommended Payment gateway and module? And Paypal question!
    By Dunitun in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 30 Jun 2007, 07:23 AM
  5. Testing credit card payment and paypal payment module
    By pingudebian in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 20 Mar 2007, 11:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg