cancel
Showing results for 
Search instead for 
Did you mean: 

how to create customer payment profile using hosted form

how to setup hosted form to create customer payment profile and i have followed this https://developer.authorize.net/api/reference/features/accept_hosted.html#getHostedPaymentPageReques...

 

 

but while selecting card and i am go for pay then at that time getting this error please help me to solve this  "E00093 PaymentProfile cannot be sent with billing data"

 

i have done this settinggs

 

 

<getHostedPaymentPageRequest xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd">
  <merchantAuthentication></merchantAuthentication>
  <transactionRequest>
    <transactionType>authCaptureTransaction</transactionType>
    <amount>20.00</amount>
    <profile>
      <customerProfileId></customerProfileId>
    </profile>
    <customer>
      <email></email>
    </customer>
  </transactionRequest>
  <hostedPaymentSettings>
        <setting>
            <settingName>hostedPaymentIFrameCommunicatorUrl</settingName>
        </setting>
        <setting>
            <settingName>hostedPaymentButtonOptions</settingName>
            <settingValue>{"text": "Pay"}</settingValue>
        </setting>
        <setting>
            <settingName>hostedPaymentReturnOptions</settingName>
        </setting>
        <setting>
            <settingName>hostedPaymentOrderOptions</settingName>
            <settingValue>{"show": false}</settingValue>
        </setting>
        <setting>
            <settingName>hostedPaymentPaymentOptions</settingName>
            <settingValue>{"cardCodeRequired": true,"showCreditCard":true}</settingValue>
        </setting>
        <setting>
            <settingName>hostedPaymentBillingAddressOptions</settingName>
            <settingValue>{"show": true, "required":true}</settingValue>
        </setting>
        <setting>
            <settingName>hostedPaymentShippingAddressOptions</settingName>
            <settingValue>{"show": false, "required":false}</settingValue>
        </setting>
        <setting>
            <settingName>hostedPaymentSecurityOptions</settingName>
            <settingValue>{"captcha": false}</settingValue>
        </setting>
        <setting>
            <settingName>hostedPaymentStyleOptions</settingName>
            <settingValue>{"bgColor": "green"}</settingValue>
        </setting>
        <setting>
            <settingName>hostedPaymentCustomerOptions</settingName>
            <settingValue>{"showEmail": true, "requiredEmail":true,"addPaymentProfile":true}</settingValue>
        </setting>
    </hostedPaymentSettings>
</getHostedPaymentPageRequest>

rahulG
Member
1 REPLY 1

from Auth.net documentation:

 

E00093 PaymentProfile cannot be sent with billing data. PaymentProfile and Billing information are mutually exclusive, only one of them can be provided at a time.

 

Don't include Billing information when you are including a payment profile.. Hope this helps.

russunit
Member