Integration and Testing

Authorize.Net API questions and help with your payment integration.

Reply
Member
Posts: 1
Registered: ‎05-25-2020

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?

Member
Posts: 1
Registered: ‎05-25-2020

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

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 

Member
Posts: 2
Registered: ‎07-17-2020

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

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/
 

Member
Posts: 1
Registered: ‎07-17-2020

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

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

Member
Posts: 2
Registered: ‎11-28-2021

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

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

https://apkact.com