cancel
Showing results for 
Search instead for 
Did you mean: 

Sandbox testing payment error: unexpected error. Please try again.

I use this integration method https://developer.authorize.net/api/reference/features/accept_hosted.html
I use your libraries in c# .net. Call getHostedPaymentPageRequest in sandbox environment and get token. I use my loginid and transactionkey.
Then I redirect to https://test.authorize.net/payment/payment and post token. Then form for credit card is shown and I write testing card. Get error on button pay: unexpected error. Please try again.
What I am doing wrong?

stajnert
Member
4 REPLIES 4

Hi,
Apologies for the inconvenience caused.
There seems to be a bug in the way that DateTime values are handled in the C# SDK.

A fix has been sent and is pending release ( .NET SDK #257 ).

Your code for doing the payment does not have any issues. I believe the issue is from the GetAnAcceptPaymentPage sample, if you are also using the order information in the request.

A temporary workaround for this is to include a valid date for order.purchaseOrderDateUTC in the format "YYYY-mm-dd".

 

transactionRequest = new transactionRequestType {
        amount = "100.00",
        transactionType = transactionTypeEnum.authCaptureTransaction.ToString(),
        order = new orderType {
            invoiceNumber = invoiceId,
            description = invoiceId,
            purchaseOrderDateUTC = new DateTime(2018, 03, 23, 11, 00, 00, DateTimeKind.Utc)
        }
}

 

 

 

UPSers 

Bryant47
Member

Hi!
So, if I use this

transactionRequest = new transactionRequestType {
        amount = "100.00",
        transactionType = transactionTypeEnum.authCaptureTransaction.ToString(),
        order = new orderType {
            invoiceNumber = invoiceId,
            description = invoiceId,
            purchaseOrderDateUTC = new DateTime(2018, 03, 23, 11, 00, 00, DateTimeKind.Utc)
        }
}


It will be temporary solution? How about permanent one? For example, I need solutiob about spying apps https://topspyingapps.com/iphone-parental-monitoring/
 

I am having some issues with getting my Paypal to process payments.  I have a business account, verified bank account, credit card tellrubytuesday.  At the very end, after I enter credit card details on Paypal end, it goes to think a bit and then spits out an error.  This is the error I was getting initially TellRubyTuesday

Rebecca
Member

Payroll unexpected error wo how we handle it can you explain it.

https://apkact.com 

aqsa1231
Member