cancel
Showing results for 
Search instead for 
Did you mean: 

POSTING RAW XML to API

Can someone provide an example of the order of xml to send for accepted hosts?

We will be using a redirect to the hosted form.

 

We currently use SIM and my understanding of this new method is as follows:

 

1) set options ie:

<?xml version="1.0" encoding="utf-8"?>
<getHostedPaymentPageRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
  <merchantAuthentication>
    <name>34RZJpz5M</name>
    <transactionKey>578k6f7q3BMaTrG5</transactionKey>
  </merchantAuthentication>
  <transactionRequest/>
  <hostedPaymentSettings>
    <setting>
      <settingName>hostedPaymentButtonOptions</settingName>
      <settingValue>{"text": "Submit Payment"}</settingValue>
    </setting>
    <setting>
      <settingName>hostedPaymentStyleOptions</settingName>
      <settingValue>{"bgColor": "red"}</settingValue>
    </setting>
    <setting>
      <settingName>hostedPaymentOrderOptions</settingName>
      <settingValue>{"show": true,"merchantName":"Texas Girls Coaches Assoc."}</settingValue>
    </setting>
    <setting>
      <settingName>hostedPaymentReturnOptions</settingName>
      <settingValue>{"url": "http://tgca_dev.jdoherty.net/php/sadispatch.php?event=renew_ccpost&amp;first_time=init&amp;invid=33:123456:71870:1626,"cancelUrl": "http://tgca_dev.jdoherty.net/php/sadispatch.php?event=renew_ccpost&amp;first_time=tcancel&amp;invid=33:123456:71870:1626", "showReceipt": true}</settingValue>
    </setting>
    <setting>
      <settingName>hostedPaymentPaymentOptions</settingName>
      <settingValue>{"cardCodeRequired":true,"showCreditCard": true,"showBankAccount":true}</settingValue>
    </setting>
    <setting>
      <settingName>hostedPaymentSecurityOptions</settingName>
      <settingValue>{"captcha":true}</settingValue>
    </setting>
    <setting>
      <settingName>hostedPaymentBillingAddressOptions</settingName>
      <settingValue>{"show":true}</settingValue>
    </setting>
    <setting>
      <settingName>hostedPaymentCustomerOptions</settingName>
      <settingValue>{"showEmail":true,"requiredEmail":true}</settingValue>
    </setting>
  </hostedPaymentSettings>
</getHostedPaymentPageRequest>

2) Get Token

3) Redirect to https://test.authorize.net/payment/payment

4) The hosted form will then redirect to our relay URL.

 

Any help greatly appreciated

 

Jim Doherty

jmd804500
Contributor
1 REPLY 1
mmcguire
Administrator Administrator
Administrator