Hi.
Yesterday I bought an developer account to create my own payment gateway.
I read through the gateway API and looked at several examples and played around a little bit with it.
Now I wanted to create my own gateway.
My problem is, that the gateway I want to use requires XML data.
Just for testing I created the function getSinglePaymentRequstParams() with some sample data. But this function requires an array as return.
Is it possible to pass the XML data over to the site?
The data should look like this:
<GenerateRequest>
<PxPayUserId>TestAccount</PxPayUserId>
<PxPayKey>dc339b3126c8fbadf4b30b498ded6a62a17b5f831e3111116bd8e332c730bbc8</PxPayKey>
<AmountInput>2.06</AmountInput>
<CurrencyInput>NZD</CurrencyInput>
<MerchantReference>Test Transaction</MerchantReference>
<EmailAddress></EmailAddress>
<TxnData1>28 Grange Rd</TxnData1>
<TxnData2>Auckland</TxnData2>
<TxnData3>NZ</TxnData3>
<TxnType>Purchase</TxnType>
<TxnId>P777575CA3DDA78C</TxnId>
<BillingId></BillingId>
<EnableAddBillCard>0</EnableAddBillCard>
<UrlSuccess>
www.mycompany.com/success.cfm
<UrlFail>
www.mycompany.com/fail.cfm
<Opt>TO=0901142221</Opt>
</GenerateRequest>
And heres is the gateway I want to create:
www.paymentexpress.com/Technical_Resources/Ecommerce_Hosted/PxPay
What I already tried to just pass the XML file, save the XML as string or even convert it to an array, but without any success.
All I see when i go to the payment page is:
"Root Element is missing".
So something must be wrong with the data that is passed to it.
Hope you can help me with this.
Cheers