stripe-payments

Store credit card using Stripe + Parse with cloud code

余生颓废 提交于 2020-02-21 06:53:23
问题 I am attempting to store a users credit card into stripe. Once the token is made, I attempt to save the token with the user to Stripe as a customer. But I didnt find any answer to my problem, I just need to store a card to a user that already exist. I tried to use the method Stripe.Customers.update but it store the new card removing the "default" card if the user had one. And using the method Stripe.Customers.create it create a new customer with the new card, but I need to store in specific

Plaid integration Rails

萝らか妹 提交于 2020-02-06 07:29:44
问题 I would like to make a payment using Stripe ACH . I use gem plaid . Here is my Link code: var linkHandler = Plaid.create({ clientName: 'Some Name', env: 'sandbox', key: ENV['key'], product: ['auth'], onSuccess: function(public_token, metadata) { $.post('/plaid/set_auth', { public_token: public_token, account: metadata.account_id }); console.log('Public Token: ' + public_token); console.log('Selected account ID: ' + metadata.account_id); } }); Plaid controller: def set_auth public_token =

Plaid integration Rails

北城以北 提交于 2020-02-06 07:29:26
问题 I would like to make a payment using Stripe ACH . I use gem plaid . Here is my Link code: var linkHandler = Plaid.create({ clientName: 'Some Name', env: 'sandbox', key: ENV['key'], product: ['auth'], onSuccess: function(public_token, metadata) { $.post('/plaid/set_auth', { public_token: public_token, account: metadata.account_id }); console.log('Public Token: ' + public_token); console.log('Selected account ID: ' + metadata.account_id); } }); Plaid controller: def set_auth public_token =

Redirect to checkout in ReactJS

寵の児 提交于 2020-02-05 02:46:05
问题 I am trying to implement the Stripe function "redirect to checkout" in ReactJS. I have been looking around and there is no package that seems to help to do it. const stripe = Stripe('key'); stripe.redirectToCheckout({ items: [ // Replace with the ID of your SKU {sku: 'sku_123', quantity: 1} ], successUrl: 'https://your-website.com/success', cancelUrl: 'https://your-website.com/canceled', }).then(({error}) => { // If `redirectToCheckout` fails due to a browser or network // error, display the

Is the customer.subscription.updated event raised when a subscription is renewed?

杀马特。学长 韩版系。学妹 提交于 2020-01-31 08:52:41
问题 I'm confused about why Stripe's documentation suggests the customer.subscription.updated event is not fired when I believe it should: A Stripe subscription object has the properties current_period_start and current_period_end which would be updated whenever the customer successfully pays a subscription's invoices ( https://stripe.com/docs/api#subscriptions ) The documentation for the customer.subscription.updated event states that it... Occurs whenever a subscription changes. Examples would

Is the customer.subscription.updated event raised when a subscription is renewed?

…衆ロ難τιáo~ 提交于 2020-01-31 08:49:26
问题 I'm confused about why Stripe's documentation suggests the customer.subscription.updated event is not fired when I believe it should: A Stripe subscription object has the properties current_period_start and current_period_end which would be updated whenever the customer successfully pays a subscription's invoices ( https://stripe.com/docs/api#subscriptions ) The documentation for the customer.subscription.updated event states that it... Occurs whenever a subscription changes. Examples would

Edit a credit card using Stripe checkout.js

泄露秘密 提交于 2020-01-31 03:30:43
问题 Checkout from Stripe has a great way to add a credit card for a transaction, by simply invoking StripeCheckout.open() . Is it possible to use .open() to edit a card ? (passing in the card token) Also, where can I download a non-minified version of checkout.js to see the .open() method signature? 回答1: There is no way to edit a card that way. What you can do though is use Stripe Checkout to ask your customer for a new card without asking him to pay anything. The idea is to avoid setting the

Edit a credit card using Stripe checkout.js

大城市里の小女人 提交于 2020-01-31 03:30:08
问题 Checkout from Stripe has a great way to add a credit card for a transaction, by simply invoking StripeCheckout.open() . Is it possible to use .open() to edit a card ? (passing in the card token) Also, where can I download a non-minified version of checkout.js to see the .open() method signature? 回答1: There is no way to edit a card that way. What you can do though is use Stripe Checkout to ask your customer for a new card without asking him to pay anything. The idea is to avoid setting the

Edit a credit card using Stripe checkout.js

流过昼夜 提交于 2020-01-31 03:30:07
问题 Checkout from Stripe has a great way to add a credit card for a transaction, by simply invoking StripeCheckout.open() . Is it possible to use .open() to edit a card ? (passing in the card token) Also, where can I download a non-minified version of checkout.js to see the .open() method signature? 回答1: There is no way to edit a card that way. What you can do though is use Stripe Checkout to ask your customer for a new card without asking him to pay anything. The idea is to avoid setting the

is it possible to make automation payment with paypal or stripe

◇◆丶佛笑我妖孽 提交于 2020-01-26 04:05:26
问题 I am looking for a solution in Paypal API which is when the client connects his account with my platform the PayPal will draw as much money as he uses the platform, however after research, I find a subscription option that can cycle every day but with a fixed price. and another option is to create invoices after a period of time. so my question is there a way for my client to pay as his use with one consent from PayPal or any other platform like stripe? 回答1: Yes, Stripe or Braintree with cron