Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • TikTakToe 57 posts 97 karma points
    Oct 06, 2018 @ 13:28
    TikTakToe
    0

    CVC Not validating

    Hi

    I'm making credit card payments via stripe, using the provider, payments are working; however I can still make payments without supplying a CVC number which is incorrect - payments without the CVC should be blocked.

    when looking at the logs, i can see the cvc is passed in as ""

    enter image description here

    please advise

    thanks

  • Tor Langlo 68 posts 168 karma points
    Oct 06, 2018 @ 16:37
    Tor Langlo
    0

    Are you in test or live mode on Stripe? What happens if you use a card that is supposed to fail CVC checks, e.g. 4000 0000 0000 0101. See here for more: https://stripe.com/docs/testing#international-cards

  • Tor Langlo 68 posts 168 karma points
    Oct 06, 2018 @ 16:46
    Tor Langlo
    0

    Theoretically you might also have rules enabled/disabled in the Stripe dashboard:

  • TikTakToe 57 posts 97 karma points
    Oct 06, 2018 @ 17:16
    TikTakToe
    0

    hi

    its in Live mode, using a real card

    rules are set up in the stripe dash

    it seems to be the issue that the CVC isnt being sent, see the post body ^^^

    thanks

  • Shaishav Karnani 22 posts 94 karma points
    Oct 07, 2018 @ 05:03
    Shaishav Karnani
    0

    Below is the HTML snippet that is making call to stripe and it includes cvc. Please advice.

        <form class="stripe-form" action="@pageModel.StripeContinueUrl" method="POST" id="stripe-payment-form">
    
            <p><img src="/assets/img/credit-card-logos.png" alt="Make your payment securely by Credit Card" /></p>
    
            <span class="payment-errors">
                @*
                    We only find out a transaction has failed on confirmation of the transation serverside, so this form gets reloaded with additional data about the error.
                    FailureReason.chargeId:ch_2pzC3AkWQAVBDn
                    FailureReason.Code:card_declined
                    FailureReason.Error:
                    FailureReason.ErrorSubscription:
                    FailureReason.ErrorType:card_error
                    FailureReason.Message:Your card was declined.
                    FailureReason.Parameter:
                *@
    
                @if (Request.Form["TransactionFailed"] == "true")
                {
                    @Request.Form["FailureReason.Message"]
                }
            </span>
    
            <div class="form-group">
                <label>
                    <span>Card Number</span>
                </label>
                <input type="tel" size="20" data-stripe="number" />
            </div>
    
            <div class="form-group form-group--quarter">
                <label>
                    <span>CVC</span>
                </label>
                <input type="tel" size="4" data-stripe="cvc" class="cvc" />
            </div>
    
            <div class="form-group form-group form-group--quarter">
                <label>
                    <span>Expiration (MM/YYYY)</span>
                </label>
                <input type="tel" size="2" data-stripe="exp-month" class="exp-month" /> &nbsp;/&nbsp; <input type="tel" size="4" data-stripe="exp-year" class="exp-year" />
            </div>
    
            @*            <a href="@Request.Form["cancel_url"]">&lt; Cancel</a>
                <button type="submit">Submit Payment</button>*@
        </form>
    
  • TikTakToe 57 posts 97 karma points
    Oct 09, 2018 @ 07:50
    TikTakToe
    0

    Bump for feedback/advice/help please?

  • Anders Burla Johansen 2560 posts 8255 karma points
    Oct 09, 2018 @ 14:13
    Anders Burla Johansen
    0

    Hi TikTakToe

    Are you using the latest version of Tea Commerce v3?

    https://our.umbraco.com/packages/website-utilities/tea-commerce/

    Have you done any changes to your Stripe view? This is the one that comes standard with Tea Commerce. But its just a starting template to use as reference. This template use Stripe v2. So maybe Stripe should be upgraded or you have looked at documentation that is not for Stripe v2.

    https://github.com/TeaCommerce/Payment-providers/blob/master/Source/TeaCommerce.PaymentProviders.UI/Views/StripePaymentForm.cshtml

    If CVC is not sent - thenmaybe some naming is wrong or Stripe changed so it should be named in another way.

    Kind regards

    Anders

  • Shaishav Karnani 22 posts 94 karma points
    Oct 10, 2018 @ 07:01
    Shaishav Karnani
    0

    1) We are using v3.2.4 for Umbraco 2) Screenshots for stripe integration for credit card. As most of the features are baked in your code so we have not done much on it.

    Any further suggestions?

    enter image description here enter image description here enter image description here enter image description here

  • Shaishav Karnani 22 posts 94 karma points
    Oct 10, 2018 @ 07:06
    Shaishav Karnani
    0

    Also StripePaymentForm.cshtml is same as default view provided by TC

  • Anders Burla Johansen 2560 posts 8255 karma points
    Oct 10, 2018 @ 07:16
    Anders Burla Johansen
    0

    Maybe check your JS if the $form object has the right values and that the form that is being submitted in line 72 of the StripePaymentForm.cshtml has the right values. All that is JavaScript. You can also maybe change the JS into making the token by your self instead of the createToken using the form object.

    You can read more about the Stripe API here:

    https://stripe.com/docs/stripe-js/v2#card-createToken

    We have never used Stripe our self and don't know 100% about their API as the Stripe provider was a contribution from the community.

  • Shaishav Karnani 22 posts 94 karma points
    Oct 12, 2018 @ 02:45
    Shaishav Karnani
    0

    Thanks - This is fixed now.

  • Anders Burla Johansen 2560 posts 8255 karma points
    Oct 12, 2018 @ 07:14
    Anders Burla Johansen
    0

    How did you fix it? Then you might help others that find the same problem at some point :)

Please Sign in or register to post replies

Write your reply to:

Draft