• Resolved ik01

    (@ik01)


    Hi,

    I was wondering if anyone can help. I am new to woocommerce and having some issues with getting the Revolut plugin to work initially in the Sandbox/Test setup.

    When I try to process the payment on the checkout page it just says something went wrong. When I look at the log this is what I get.

    12-28-2022 @ 21:01:39 – Something went wrong
    12-28-2022 @ 21:05:32 – Can not update wc_order_id for Revolut order record on DB:
    12-28-2022 @ 21:05:33 – Something went wrong
    12-28-2022 @ 21:09:18 – Can not update wc_order_id for Revolut order record on DB:
    12-28-2022 @ 21:09:19 – Something went wrong
    12-28-2022 @ 21:09:37 – Can not update wc_order_id for Revolut order record on DB:
    12-28-2022 @ 21:10:03 – Can not update wc_order_id for Revolut order record on DB:
    12-28-2022 @ 21:10:04 – Something went wrong
    12-28-2022 @ 21:12:17 – Failed request to URL POST https://sandbox-merchant.revolut.com/api/1.0/webhooks
    12-28-2022 @ 21:12:17 – {“timestamp”:1672261937396,”code”:1000}
    12-28-2022 @ 21:12:26 – Failed request to URL POST https://sandbox-merchant.revolut.com/api/1.0/orders
    12-28-2022 @ 21:12:26 – {“timestamp”:1672261946795,”code”:1000}

    Any help will be greatly appreciated.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support businessrevolutsupport_cornel

    (@businessrevolutsupportcornel)

    Hello,

    Thank you for contacting us. Please make sure you use a sandbox API_KEY. For that please go to https://sandbox-business.revolut.com/signin and create a sandbox account. It gets approved instantly, once approved take the API_KEY from that account (account settings – top left corner -> merchant API ->Production API_KEY). Also make sure to use test cards provided by us here, not real cards.

    Kind regards,

    Revolut Business

    Thread Starter ik01

    (@ik01)

    I did exactly that but I could have another go and try again.

    Thank you

    Thread Starter ik01

    (@ik01)

    so i tried again. logged into the sandbox environment. copied the API key and get the same issue.

    When I delete the log I keep getting this in the log.

    01-06-2023 @ 18:01:21 – Failed request to URL POST https://sandbox-merchant.revolut.com/api/1.0/webhooks
    01-06-2023 @ 18:01:21 – {“timestamp”:1673028081110,”code”:1000}

    Plugin Support businessrevolutsupport_cornel

    (@businessrevolutsupportcornel)

    Hi @ik01 ,

    Did you select mode “Sandbox” in our plugin settings or is it still “Live”? Also please make sure you take the secret API_KEY, not the public one

    Kind regards,

    Thread Starter ik01

    (@ik01)

    Yes sandbox and secret key.

    I keep getting this

    2023-01-13T09:57:46+00:00 ERROR {“code”:”unauthenticated”,”message”:”Authentication failed”,”timestamp”:1673603866915}
    2023-01-13T10:06:19+00:00 ERROR Something went wrong

    Plugin Support businessrevolutsupport_cornel

    (@businessrevolutsupportcornel)

    Hi @ik01 ,

    Code 1000 and code “unauthenticated” means the API_KEY you are using is not accepted.

    Please make sure:

    • you take the secret API_KEY, not the public one, from your sandbox account, not the live one. Use this link: https://sandbox-business.revolut.com/settings/merchant-api
    • properly copy it into our plugin settings tab input field (make sure there are no white spaces)
    • Mode selected is “Sandbox”
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Testing with Sandbox setup’ is closed to new replies.