I am using Stripe SDK with PHP Laravel 5.1. I am receiving payment from registered user of certain type. Upon certain steps I'd like to transfer a certain amount of their payment to other users who already added their cards in Stripe. How can I do that?
Right now I m only asking his Credit Card Info and storing in Card object. Should I need to ask his bank account information as well?
Related
Dear Laravel/spark users,
In my Laravel Spark settings page it is possible to set your payment method (and billing address). After filling in credit card info and adding it, everything appears to be stored properly. I can also charge the user via the simple $user->charge(100);
So the connection with Stripe (the payment system) is fine. However, when I go to the subscription page to select a plan, the credit card info is not used when I select a plan. I do see that the billing address is loaded but the credit card info stays empty. I have to put in the same credit card info again in order to active my subscription.
I would expect that the already stored credit card info is loaded? Is there an option that I am overlooking?
Best regards
I'm using Braintree hosted fields to allow credit card payments, and users can use multiple cards.
How can I allow users to edit existing cards? For example, when a card is renewed by the bank, it keeps the same card number, but the expiration date and CVV change. I want users to be able to edit the expiration date and CVV to keep the card active. Is this possible, or does the user have to enter in a new card from scratch with the same card number?
Full disclosure: I work at Braintree. If you have any further questions, feel free to contact support
Once your customer has their payment method stored in a Vault record you can use their associated payment method token to run a PaymentMethod.update() call. Using the payment method update you can change most attributes of the stored method, and you can find a full list of those attributes here. When updating actual card information, such as CC number, expiration date, etc. it is recommended that you generate a nonce with the new information rather than entering it manually, but either will work just fine.
I'm using Omnipay-stripe in laravel 5.2 and is working fine. I want to store credit card details of customers to pre-populate stripe popup with creditcard details while making another payment.
You need to register the card against stripe using createCard which will get you back a card reference. You can then use that instead of the actual card data when making a purchase.
You should be calling create customer as well. Check the documentation in the class docblocks
My app requires users to log in with Parse to make a purchase and uses parse cloud to process payments using Stripe. Payment works fine. I want to associate the card that just used to make the payment to the [PFUser currentUser] so I can load the cards for user to select next time. How can I achieve that? Is it possible to get the card information from the token?
P.S one user can have many card and one card can belong to many user.
I'm not sure exactly what you mean by "card information" but it should be possible to achieve what you want. You'll want to first create a Customer object in Stripe to represent each user. Each Stripe Customer has a list of payment sources associated with them, and you can read the brand and last4 if you need to display a list of these to the user to select one.
Once you create a customer in Stripe, you can create any number of Charges.
All of this can be done in a straightforward manner using the intuitive Stripe API. You can also manage Customers and Charges via the Stripe dashboard.
We're developing a system whereby the user will be sign-up and have a 3 month trial without entering card details. Once the trial period is up they get sent an e-mail asking them to come back and register card details in order to setup a recurring payment in order to continue accessing the site.
Is it possible to configure recurring payments with Braintree such that we don't provide a card for the trial period and then configure one upon notification that it has expired?
Thanks!
I work at Braintree. If you want more information than you can easily get on Stack Overflow, please reach out to our support team.
Braintree subscriptions require a credit card to be created. That way, the transition from trial period to billing doesn't require any action by the customer or merchant. Since our core service is billing credit cards, that's what subscriptions are designed to do.
In your case, it sounds like you can create a subscription in your application, and only link it to a Braintree subscription if / when credit card details are entered. You'll need to handle tracking the three month time limit yourself.