• Resolved mikewpdev

    (@mikewpdev)


    Hello my favorite developer,

    I am very pleased this plugin exists, I have one simple suggestion that would make subscriptions little more usable.

    In USA and EU most of sellers must charge also VAT or sales tax, subscriptions on Stripe can be set to default prices like 100 EUR / month, but in reality real price is 100 + 23% VAT for Ireland example, it can not be charged as 123 EUR, because if you sell to other country, same subscription may become 125 EUR, so Stripe introduced tax_percent.

    https://stripe.com/docs/subscriptions/taxes

    
    // Set your secret key: remember to change this to your live secret key in production
    // See your keys here: https://dashboard.stripe.com/account/apikeys
    \Stripe\Stripe::setApiKey("sk_test_mg2HaEVE1whLOsw8cC7STu2B");
    
    \Stripe\Subscription::create(array(
      "customer" => "cus_4fdAW5ftNQow1a",
      "plan" => "pro-monthly",
      "tax_percent" => 6.34,
    ));

    Is there any way this plugin would use tax_percent feature taken from Woocommerce taxes in product price? It would make this absolute solution for subscriptions, I am willing to help testing.

    Best regards, Mike

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author wsspg

    (@wsspg)

    Hello Mike !

    Thank you for highlighting this, it’s an important point that you make and I’m sure we can do something about it.

    Features like this are a priority for Wsspg and I would expect this to be included in a minor version release within the next few weeks. I don’t expect there to be any issues with this one, but if so then I’ll make a testing branch on the Github repository and ask politely for volunteers/guinea pigs.

    This thread will be updated with further details along the way.

    Thank you for using Wsspg, and thank you very much for rating it!

    Plugin Author wsspg

    (@wsspg)

    With the release of version 1.0.1, Wsspg now supports subscription tax rates.

    Thread Starter mikewpdev

    (@mikewpdev)

    Hello, great news, I am very happy, I am just testing it now, I am encountering these errors.

    During payment, checkout page after Place order throws error:

    Error processing checkout. Please try again.

    In debug log I get:

    
    03-25-2017 @ 17:35:15 - [ error ][ customers/cus_AK9LkrFLAu6EWG/sources ][ req_AM0oSKSEdY1qHU ]: stdClass Object
    (
        [type] => invalid_request_error
        [message] => Missing required param: source.
        [param] => source
    )
    

    and Stripe log:

    Summary:

    
    ID: req_AM0ot4K3RJHYgr
    Time: 2017/03/25 17:34:49
    Method: POST
    URL: /v1/plans/1
    Status: 200
    IP address: 13.127.22.85
    Version: 2017-02-14 (latest)
    Source: WordPress/4.7.3; https://www.example.dev
    Related: Plan — 1
    

    Response body:

    
    {
      "id": "1",
      "object": "plan",
      "amount": 10000,
      "created": 1490463059,
      "currency": "eur",
      "interval": "month",
      "interval_count": 1,
      "livemode": false,
      "metadata": {},
      "name": "Test",
      "statement_descriptor": null,
      "trial_period_days": null
    }
    

    This happens after installing plugin update and trying to pay for a product, happy to help with follow up, thank you for doing this.

    Mike

    • This reply was modified 7 years, 11 months ago by mikewpdev.
    Thread Starter mikewpdev

    (@mikewpdev)

    Hello, great news, I am very happy, I am just testing it now, I am encountering these errors.

    During payment, checkout page after Place order throws error:

    Error processing checkout. Please try again.

    In debug log I get:

    03-25-2017 @ 17:35:15 - [ error ][ customers/cus_AK9LkrFLAu6EWG/sources ][ req_AM0oSKSEdY1qHU ]: stdClass Object
    (
        [type] => invalid_request_error
        [message] => Missing required param: source.
        [param] => source
    )

    Stripe log for customer:

    Summary:

    
    ID: req_AM0oSKSEdY1qHU
    Time: 2017/03/25 17:35:15
    Method: POST
    URL: /v1/customers/cus_AK9LkrFLAu6EWG/sources
    Status: 400
    IP address: 13.127.22.85
    Version: 2017-02-14 (latest)
    Source: WordPress/4.7.3\; https://www.example.dev

    Response body:

    {
      "error": {
        "type": "invalid_request_error",
        "message": "Missing required param: source.",
        "param": "source"
      }
    }

    This happens after installing plugin update and trying to pay for a product, happy to help with follow up, thank you for doing this.

    Mike

    Plugin Author wsspg

    (@wsspg)

    Hello, thank you for highlighting this issue. This has been corrected in the 1.0.2 release. Please update to the latest version and let me know if the problem persists; if possible, please consider creating a new support thread for any further issues.

    Thank you for using Wsspg !

    Thread Starter mikewpdev

    (@mikewpdev)

    Yes thank you, I have updated to version 1.0.2, new problem came up, as you suggested I opened new support thread, unfortunately I was not able to test subscription tax yet, because that new error came up, looking forward and excited for this to work.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Subscription tax’ is closed to new replies.