コード例 #1
0
        public ActionResult AddCardToCustomer(SetupIntent intent)
        {
            User user = SessionManager.GetUserSession();

            if (string.IsNullOrEmpty(user.StripeCustomerID))
            {
                _stripeService.stripe_CreateCustomer(user);
            }
            else
            {
                _stripeService.AddCardToExistingCustomer(intent, user.StripeCustomerID);
            }
            return(View());
        }