Uploading Payment via DataPort and XML

A forum where issues related to the DataPort utility can be discussed.
Post Reply
jake.pretot
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 22
Joined: Fri Feb 20, 2009 1:31 am

Uploading Payment via DataPort and XML

Post by jake.pretot » Sat Mar 03, 2012 12:29 pm

I can successfully create an order, but the payment creation is failing. All that I'm attempting to do is record a payment on the order. This will only create a record in the ac_payments table and no transaction. What am I missing? This is what I'm uploading in the XML file...
:cry: ....
</OrderItems>
<Payments>
<Payment>
<PaymentId>0</PaymentId>
<OrderId>0</OrderId>
<SubscriptionId>0</SubscriptionId>
<PaymentMethodId>1</PaymentMethodId>
<PaymentMethodName>Visa</PaymentMethodName>
<ReferenceNumber>4111222233334444</ReferenceNumber>
<Amount>59.90</Amount>
<CurrencyCode>USD</CurrencyCode>
<PaymentDate>0001-01-01T00:00:00</PaymentDate>
<PaymentStatusId>0</PaymentStatusId>
<PaymentStatusReason>nothing</PaymentStatusReason>
<CompletedDate>0001-01-01T00:00:00</CompletedDate>
<EncryptedAccountData />
<ReCrypt>false</ReCrypt>
<Transactions />
</Payment>
</Payments>
<Notes />

jake.pretot
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 22
Joined: Fri Feb 20, 2009 1:31 am

Re: Uploading Payment via DataPort and XML

Post by jake.pretot » Sat Mar 03, 2012 1:06 pm

For some reason, I close out of DataPort, then opened again and tried the import again. This time it worked. Not sure why though.

Post Reply