sveawebpay / php-integration

SDK for Sveas payment methods (standalone and Svea Checkout)
Other
15 stars 19 forks source link

CardPay: Transaction rejected by bank. #65

Closed timint closed 8 years ago

timint commented 8 years ago

The following code gives me an immediate error saying "Transaction rejected by bank." The expected result was a payment window URL. Using the public test account 1130.

        $response = $swp->usePaymentMethod(Svea\WebPay\Constant\PaymentMethod::SVEACARDPAY)
                        ->setCardPageLanguage($order->data['language_code'])
                        ->setReturnUrl(document::ilink('order_process'))
                        ->setCancelUrl(document::ilink('checkout'))
                        ->getPaymentUrl();

        if (empty($response)) throw new Exception('No response from Svea Ekonomi');

        if (!empty($response->errormessage)) throw new Exception($response->errormessage);

What to do?

nlii commented 8 years ago

If you send an email to support-webpay@sveaekonomi.se with a date and a clientOrderNumber, our helpdesk can search in the logs to se what went wrong with this request.

fre-sund commented 8 years ago

Are you using the specific card details for SVEACARDPAY? They are different from the ones that are provided for KORTCERT.

timint commented 8 years ago

Fredrik, I'm just trying to retrieve the paymentURL. I don't even get to the point where I can insert card details. I'll try giving you a quick call before registering a support ticket.

timint commented 8 years ago

Error was related to currency USD. Thanks F&A.

Thread closed as new ticket for improvemnets opened at https://github.com/sveawebpay/php-integration/issues/67.