• Resolved Rune Rasmussen

    (@syntaxerrorno)


    I think it would be a good idea to start writing on the missing documentation for everything soon, especially the new Instore feature, where the only “doc” you have seems to be this: https://www.ads-software.com/support/topic/new-feature-where-is-it/#post-17829973

    Meanwhile, could you please describe how it is supposed to be used and how it should work here, step by step?

    I’m asking because I’ve tested it, created an order for myself from admin, having the ‘Awaiting payment’ status, and saved it. Then I pushed the new button who appeared for sending the payment link, and the screen refreshed and added an order note: ?Instore order created with Svea ID: …?, and it’s also added some info in the order details section (Payment link is sent. SMS sent successfully). In spite of this I received no mail or SMS, and can’t see the order in Payment Admin (test environment).

    Maybe it’s something wrong somewhere else, but hard to tell if we don’t know how it’s supposed to be used, and how it should work in Woo.

    Sidenote! minutesUntilLinkExpires is set where? By the the Woo stock hold?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author The Generation

    (@thegeneration)

    Hi

    We agree and a documentation is underway, although not done yet and we’d have to ask for your patience regarding that.

    A quick run-down of how it’s supposed to work follows:
    1. Apply for instore-credentials at Svea
    2. Add the credentials here: WooCommerce > Settings > Payments > Svea Checkout
    3. Place an order and note that you get a “send payment link” in the order view.

    Regarding “minutesUntilLinkExpires”, this is set in WooCommerce > Settings > Products > Inventory.
    It is the setting called “Hold stock (minutes)”.

    Hope this was the information you were looking for.

    Best regards

    Thread Starter Rune Rasmussen

    (@syntaxerrorno)

    Obviously I already did step 1-3, and it didn’t work, so not exactly what I was looking for no. ??

    Beyond that, great that we agree there is a need for docs. Though we’ve been waiting for several things more than a year, so patience is slowly running out. ??

    Thread Starter Rune Rasmussen

    (@syntaxerrorno)

    According to Svea there is no payment link sent on SMS for test, but it seems to work for production.

    It’s though not sent any mail from Svea or the store automatically when using either test or production, even though the order states that a payment link it’s sent, but maybe you’re just displaying duplicated info with different wordings:

    Svea instore
    Payment link is sent
    SMS sent successfully

    • Note! Maybe anyway better to display different messages her when in test mode, to avoid any confusion.

    Anyhow for others wondering, this seems to be the steps working somewhat:

    1. Create a manual order as you normally would from admin (Google: Manual order in WooCommerce), with status ‘Awaiting payment’.
      *On payment method you should probably select Svea Checkout, even though it doesn’t seem to make any difference?
    2. Click on ‘Create’ in the ‘Order action’ box.
      *NOTE! Do not select any email to send, the payment link in it will not work at this stage, and thus only confuse your customer.
    3. Wait for the page to reload.
    4. Click the new ‘Send Svea payment link’ button, who should appear in the order details box now.
    5. Wait for the page to reload.
    6. The customer should receive a SMS with a payment link from Svea.
    7. Now you can also select the ‘Send the order details to customer’ in the ‘Order action’ box, if you also want to send a payment link on mail.
      *Select it from the drop-down, and just push the “arrow” next to it to send it.
    8. The customer receives the order details mail including a payment link.

    Regarding “minutesUntilLinkExpires”, this is set in WooCommerce > Settings > Products > Inventory.
    It is the setting called “Hold stock (minutes)”.

    Okay, but what if stock management isn’t enabled then? When ‘Manage stock: Enable stock management’ isn’t selected, the ‘Hold stock (minutes)’ setting is hidden, but you still use it?

    Plugin Author The Generation

    (@thegeneration)

    Hi

    Thank you for all the feedback.

    Regarding the hold stock (minutes), yes it is used under the hood even if it’s hidden when Stock management is disabled. In this case, it has a default value of 30 minutes. Minimum is 10 and maximum is 60.

    It is also filterable with “woocommerce_sco_create_instore_order”-filter.

    Best regards.

    Thread Starter Rune Rasmussen

    (@syntaxerrorno)

    Minimum is 10 and maximum is 60.

    Are those the minimum and maximum allowed by Svea Checkout API?

    Turns out the 60 minutes isn’t enough for many customers when the orders is placed through the webshops, and thus it just leads to more work for the store admins, supporting those customers who isn’t able to pay within 60 minutes – re-adding their orders over and over again.

    So when used in webshops it needs to be increased to something like 3 hours I guess …

    Plugin Author The Generation

    (@thegeneration)

    Hi,

    Those numbers are just arbitrary and in the upcoming release 3.0.0 you’ll be able to set the value separately from the “hold stock minutes” option.

    If you’d like to change the minutes in the current version you could use the filter “woocommerce_sco_create_instore_order” to programmatically edit the value “minutesUntilLinkExpires”

    Best regards

    Thread Starter Rune Rasmussen

    (@syntaxerrorno)

    OK, sounds good regarding the 3.0.0 version.

    In the meantime, while everyone waits for it, better post the full instructions for the current versions for everyone who needs it till then (which is most Instore users I guess ;)).

    And regarding the credentials.. I’ve received an ID (6 numbers) and a long code (128 letters/numbers) that I assume is the Instore Secret Key from my Svea representant, but but the woocommerce plugin also has a field to fill in a password.

    I guess that I should also receive the password from Svea, right? When the field is left empty, I get a “critical error” on my Woocommerce site when trying to send a Svea payment link from a order I`ve created. </p> <p>When the 128 letter/number code is used both as <em>password </em>and as <em>instore secret key</em> field (or just in the password field), I receive a 401 Unauthorized response.

    Plugin Author The Generation

    (@thegeneration)

    Hi,

    All the credentials you need to fill in for the plugin must be obtained from Svea. If you’re missing any details, you should contact them, and they will assist you further.

    Best regards

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.