0

I'm currently trying to complete a test payment on a Quickpay integration. I successfully generate a redirect url via the API like so,

POST https://api.quickpay.net/payments

BODY

{
    "order_id": "A4asdB2343", // This is generated at random each request
    "currency": "EUR",
    "variables": {
        "myCustomOrderId": 123
    }
}

HEADERS

{
    'Accept-Version': 'v10',
    Authorization: `Basic ${Buffer.from(`:${authToken}`).toString('base64')}`,
}

Which returns

{
    "id": 145359050,
    ...
}

Which I then generate a redirectUrl request which looks like,

PUT https://api.quickpay.net/payments/145359050/link

BODY

{
    "amount": 400,
    "continue_url": "myurl",
    "cancel_url": "myurl"
}

HEADERS

{
    'Accept-Version': 'v10',
    Authorization: `Basic ${Buffer.from(`:${authToken}`).toString('base64')}`,
}

Which returns

{
    "url": "https://payment.quickpay.net/payments/..."
}

I then redirect to the returned address.

Once on the payment page I try to complete the transaction with the Credit card test numbers but get the error message on submission.

enter image description here

I know the test cards work as per the example here and I've added a payment method for VISA like so,

enter image description here

enter image description here

I'm assuming I've miss-configured my store? Has anyone run into an issue like this?

stwilz
  • 2,226
  • 2
  • 21
  • 24
  • Could you please post your code so that someone would be able to identify the issue if there's any with your code? – PrivateOmega Apr 15 '19 at 06:16
  • @KiranMathewMohan payload examples are above. It would be great if it was an API issue but I'm doubtful as all the requests actually pass before the redirect url is created. If there was an issue with the parameters supplied I would expect to see the requests return an error message. It also looks like the cancel and continue urls are optional. – stwilz Apr 15 '19 at 06:38

1 Answers1

3

Have you activated test transactions in the Quickpay manager (https://manage.quickpay.net/account) in Settings > Integration?

And did you remember to activate an acquirers with blank info ?

Also you dont need to set "visa" in "default payment methods" if you leave it blank it use every payment methods you have available

LucianDex
  • 469
  • 2
  • 12
kd.
  • 56
  • 4
  • Thanks for this man. I should have resolved this when we solved it. You're right, the defaults aren't important but the integrations need to be set up correctly :) – stwilz May 07 '19 at 07:48
  • Hi, I am also doing the same but this is not working with VIPPS. I have enable the Vipps but still getting 'No available payment-method for transaction' but its working with Clearhaus and other payment methods.any clue how to enable VIPPS? – awsm sid Mar 28 '20 at 17:34
  • @awsmsid what are you trying, a test paymen in vipps? i just need to understand what you are asking :) – kd. Mar 30 '20 at 07:16
  • I am trying to enable the VIPPS option in the QuickPay but when I am using the QuickPay URL for payment I am not getting the VIPPS option on the payment page. – awsm sid Mar 30 '20 at 09:09
  • 1
    @awsmsid and you have a VIPPS account set up ?, you can't do testing with VIPPS, you will need to have a live VIPPS and QuickPay account. to test it, it's a personal account so test accounts can't be created by QuickPay. – kd. Mar 31 '20 at 10:06