I have following requirement. App user A calls another user B and if the user B attends the call, $1 has to be debited from his credit card. Card details will be collected during the registration step.
There is no subscription involved in the process. Do I need to use Laravel cashier for this?
Answer: You don't need to use Laravel cashier for "one-off" charges.
In their document they were clearly mentioned following.
If you're only performing "one-off" charges and do not offer subscriptions, you should not use Cashier. Instead, use the Stripe and Braintree SDKs directly.
Related
Stripe has so many different methods it's kinda confusing which one to used. I have a credit card form for the user after he/she has selected the subscription they want to purchase. From this point, I want to create the customer, setup payment and subscription all in one step.
Do I do:
Create customer
Create payment method
Create subscription
OR
Create Intent
Create Session
Or does creating a session handle create customer, create payment method and create subscription all in one?
If you want to use the hosted Checkout solution, you would not collect payment details yourself. Stripe does that for you as part of the Checkout flow. You can create a customer ahead of time, but by default Checkout will create one for you.
Most likely using Checkout with mode=subscription to start a subscription is going to be your most straightforward option. If you do use Checkout this way, you would not create any Subscriptions/Intents directly yourself. You can also use the Customer Portal to manage changes to the subscriptions later.
You can also go with the custom flow you described, creating the customer, attaching payment methods and starting a subscription, but this is more involved.
I'm building website that is able to sell and buy product inside the website.
Users can post product and buy product from others.
Only remain thing is to integrate with payment gateway.
I'm going to use stripe for payment gateway.
Is it possible to do that with stripe?
Which is the best way to implement this?
The website was built in Laravel 5.4.
Yes, you can use Stripe for that. Taking advantage of Laravel Cashier. They've already implemented some logic that you can reuse.
Second, you want to pay 'sellers', yes, Stripe does that. Please check Stripe COnnect, which is great for exactly what you are trying to do.
Link: https://stripe.com/connect
This link shows specifically how to charge the user and keep some fees: https://stripe.com/docs/recipes/store-builder
If you follow all the documentation from Cashier, you are good to go.
Link: https://laravel.com/docs/5.4/billing
I am working on Laravel 4.2 project. The project is about to provide the Video services to the dedicated customers.
The client wants to use PayPal payment gateway and I have never done this before. He has provided me a Personal and a Business account with Classical API credentials and signature.
The project requirement is once user sign-up, he will be charged certain amount (let us say $10 every month). For payment he must NOT be redirected to PayPal site that means everything should be done using my website only. Also we will NOT store any credit card details of the user and still the Payment should be done OR renewed automatically every month.
If user wants to turn of the the auto renewal of payment, he can.
I am not sure how to do this using PayPal classical API. Although I have downloaded the Omnipay/Omnipay package from git-hub, they asks there is no method to store the user's credit card details in PayPal Vault using this also to have a cron job for auto renewal. Since I don't want to store the credit card details, I am not sure how to do all this.
Please help me or guide me to do so. Is there any sample or example?
In order to take credit cards directly like you're asking you'll need to sign up with PayPal Payments Pro, which is $30/mo. Then you'll need to add the recurring billing feature to that, which is another $30/mo.
If that's not a problem, then after getting those things approved and active on your account, you would use the CreateRecurringPaymentsProfile API to create the subscription profiles.
This PayPal PHP SDK is available on Packagist and works with Composer, so it works wonderfully in Laravel.
The CreateRecurringPaymentsProfile sample is functional as-is (although, as I look at it now you'll need to update the expiration date of the credit card) so you would just need to replace all of the static data with your own dynamic data.
The template file is the same thing but it's completely empty and ready for you to populate with your own data.
Using that SDK you can have the profile creation working within minutes, so it's just a matter of having Pro w/ Recurring Payments enabled on your account.
I need to create as my first year project a php application that requires to handle payments. The business model I would like to implement requires that I have to both receive and make payments to the customers (basically I need to handle transactions between 2 customers, and I get a small fee of the transaction value).
I have never used any payment API, but that's not the point. The problem is that I would like something that has a sandbox mode where I can experiment and does not require business/premium accounts or to make bank requests. I was thinking about PayPal, but it seems it requires a business account.
Is there such an API?
You can use Stripe, which has a great API and a testing mode: https://stripe.com/docs/testing
It's free and there is no "premium account".
Look at PayPal Adaptive Payments. You can get up and running in the sandbox very easily.
Specifically, you'll want to look at the Pay API.
but it seems it requires a business account.
Business account is only for production API. For development you use sandbox and there's no such requirement.
Is it possible to make Paypal payments using stored user's data (credit card info, name, address etc.) within cron job or other script execution without actual user present?
I want to implement autopayments on my service but I can not to use standard Paypal autocharge functionality because of its complexity.
What you're looking for is called Reference Transactions. You can use the DoReferenceTransaction API to accomplish your goal.
Using this API you simply pass in the transaction ID of a previous Authorization or Sale transaction along with a new amount you'd like to process. It will lookup the billing info saved on PayPal's system using that previous transaction ID, and then process the same source for the new transaction.
This works with both Payments Pro and Express Checkout.
I noticed you posted this with the adaptive payments tag, too. That would be the Preapproval API and the Pay API, but would not involve DoDirectPayment.