开发者

display the transaction status from authorize.net

开发者 https://www.devze.com 2023-02-13 03:50 出处:网络
I am developing a web application. There I am using authorize.net for the payment process. I want to display the status of the error message (like Transaction Status:Declined (Card declined by开发者_运

I am developing a web application. There I am using authorize.net for the payment process. I want to display the status of the error message (like Transaction Status: Declined (Card declined by开发者_运维知识库 issuer - Contact card issuer to determine reason.). I have implemented the following code

if ("Ok" != $parsedresponse->messages->resultCode) {
                            $errorMsg = '';
                            foreach ($parsedresponse->messages->message as $msg) {
                             $errorMsg .= htmlspecialchars($msg->text);
                            }
                            }

But I need the message like Transaction Status: Declined (Card declined by issuer - Contact card issuer to determine reason.)

Does any one know this?


You would use this code:

$parsedresponse->messages->message->text
0

精彩评论

暂无评论...
验证码 换一张
取 消