• Resolved christophmuth

    (@christophmuth)


    Hi,

    I’m using the “Braintree For WooCommerce” Plugin to create a product of type “Braintree Variable Subscription”.
    The strange behavior I’ve encountered is that after a successful order Braintree uses the subscription price to charge the customer insted of the price that is set in the connected Braintree plan.

    The second problem I have is that even a product with a trial period triggers a transaction that is as high as the subscription price of the product.
    Is there a way to fix this behavior so that the transaction is only triggered at the end of the trial period?

    Best Regards
    Chris

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hi @christophmuth,

    The subscription price you set for the product within the WordPress admin will always override the Braintree subscription plan price within the Braintree control panel.

    Does the Braintree plan have a trial period or are you setting a trial period on the subscription product in the WordPress admin?

    Kind Regards,

    Thread Starter christophmuth

    (@christophmuth)

    Hi @mrclayton,

    I have actually set the subscription price on both ends (WordPress admin and Braintree).

    In WordPress I have set a trial period of 14 days and a signup fee of 2€.
    The connected Braintree plan has a trial period of 14 days.
    As there was no way to add a signup fee in Braintree, I am creating a transaction via the API to charge the signup fee of 2€.

    The API call is already working, but the subscription price (that I set on both ends) is already charged immediately after a customer completes an order instead of after 14 days.

    Do you have an idea why this happens? Did I make a mistake in the setup?

    Kind Regards

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @christophmuth,

    So you are using the plugins filters to make a call to Braintree to create a separate transaction for a sign up fee? If so it sounds like the issue could be in your custom code.

    The plugin’s subscription functionality provides the option to assign a sign-up fee to a subscription product so I am not sure why you would need to roll your own custom code.

    Thanks,

    Thread Starter christophmuth

    (@christophmuth)

    Hi @mrclayton,

    that means I dont have to create Braintree plans if I setup my products (including subscription price, signup fee, trial duration, etc.) in WordPress?

    Kind Regards

    Thread Starter christophmuth

    (@christophmuth)

    I found out that I have to create a Braintree subscription plan and connect it with the product in WordPress.

    When I use the plugin’s subscription functionality to assign a sign-up fee to a subscription product the amount will not be charged. Isn’t that what it should do?
    That was the reason why I created the API call.

    Is it possible to charge the subscription price after the trial period instead of immediately after the order has been created?

    Kind Regards

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @christophmuth,

    I recommend you read through our article on how to create a Braintree Subscription product in the WordPress admin. The functionality supports trail periods and sign up fees.

    https://support.paymentplugins.com/hc/en-us/articles/115002993548-Create-a-Subscription-Product

    A sign-up fee is charged at the time of subscription sign-up which would be during checkout. If there is a trial period then the subscription price will be charged at the end of the trial period.

    Based on the information you have provided I don’t think you need to add any custom code.

    Thanks,

    Thread Starter christophmuth

    (@christophmuth)

    Hi @mrclayton,

    I created the subscription product exactly as described in the article.
    Here is an screenshot of the product fields:
    https://www.dropbox.com/s/8oikrdhwcsi4eax/subscription-product.png?dl=0

    But if I disable all custom code and order this product for a trial, Braintree shows the following:
    https://www.dropbox.com/s/y8cohqrt8lsmxed/braintree.png?dl=0

    My Braintree plan looks like this:
    https://www.dropbox.com/s/tovan74w7kkkftq/braintree-plan.png?dl=0

    Did i setup anything the wrong way? Maybe inside Braintree?

    Kind Regards

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @christophmuth,

    You don’t need to set a trial period on the actual Braintree Subscription Plan. The plugin will calculate the number of days for the trial and assign the subscription start date based on if there is a trial or not.

    I will setup our test site like your example and get back to you. In the interim, please test by removing the trial period from the Braintree plan.

    Thanks,

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @christophmuth,

    I created a subscription product in our test site with the same parameters as your plan provided in the screenshot. The initial fee was charged correctly and the subscription start date was set to 14 days after the checkout date.

    I was not able to reproduce your issue. Please double check that you removed all custom code pertaining to the sign up fee that you mentioned earlier in the thread.

    Kind Regards,

    Thread Starter christophmuth

    (@christophmuth)

    Hi @mrclayton,

    thank you at first for your extensive support.

    I found out that the trial period seems to be transferred to Braintree correctly. Here is a screenshot of the subscriptions overview of Braintree:
    https://www.dropbox.com/s/y9jpotywm94c5xl/subscriptions-overview.png?dl=0

    But when I enter the details page of that subscription, the trial period is set to ‘none’:
    https://www.dropbox.com/s/fx9ceuamynaqncy/subscription-details.png?dl=0

    Is it possible that this happens because I use the “Braintree Variable Subscription” Type in WordPress?

    Kind Regards

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @christophmuth,

    The subscription being a variable subscription wouldn’t make any difference. I also tested the variable subscription and everything worked as expected.

    What version of WC are you using?

    Thanks,

    Hello @mrclayton,

    i run into the same problems.

    1. Sign-up fee
    “A sign-up fee is charged at the time of subscription sign-up which would be during checkout. If there is a trial period then the subscription price will be charged at the end of the trial period.”
    First of all the sign-up fee i assigned in WooCommerce never appears in Braintree when i take a look at the transactions. Where should they appear?

    2. Discounts/Vouchers
    When I enter a discount the amount is deducted from the subscription price and not from the sign-up fees. To understand my aim, I have a product which has a monthly fee of 9,90€ and an one-time-fee of 10€. With the help of a voucher i want to remove the one-time-fee for special customers.

    3. Trial
    I created a product with a trial period of 14 days. When i buy this product a transaction of 9,90€ appears directly after my order is completed.

    You said that you setup site. Could you please send us the link so we can check which settings are different to ours?

    I am using Braintree For WooCommerce 2.6.22 and WooCommmerce 3.3.4

    Thanks in advance and i hope you can help us get this running.

    Best Regards
    Manuel

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @manuelwenner,

    We don’t grant access to our testing site but if you send us an email to our support address then I would be happy to take a look at how your products are setup.

    1. The sign-up fee should appear as a transaction in the Braintree control panel.
    2. The current functionality of the plugin is that the discount is applied to the monthly subscription price. This is a limitation of the plugin at this time when using subscriptions. For a more robust subscription solution I recommend WCS.
    3. The subscription price should not be charged until the end of the trial. The behavior you have described seems as if the product is not being assigned as a Braintree Subscription but rather a simple product.

    If you can grant me access to your site I believe that will bring more clarity.

    Kind Regards,

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Subscription price is being charged at the beginning of the trial period’ is closed to new replies.