Laravel Stripe Cashier to Delete a Customer - php

How do I delete a customer in Stripe using Laravel's Cashier built-in method?
I know there's a way to delete a customer through Stripe's API - https://stripe.com/docs/api/customers/delete But I want to use Laravel's Cashier method because it is much cleaner in my code instead of creating another code to use Guzzle in working on Stripe API.
Any help or tips is greatly appreciated! Thanks!

There doesn't appear to be a delete method for Customers with Laravel Cashier. You'll need to make that API call to Stripe directly.

Related

Stripe take payment using saved card laravel php

How can i use saved card in stripe for next payment in future using stripe in Laravel framework?
I have tried to find out in Stripe official documentation but i could not find the best solution.
You may want to ask the Laravel/Cashier community for more advice, but it looks like you can retrieve a customer's payment methods like this (docs):
$paymentMethods = $user->paymentMethods();
If you're referring to use with future invoices (eg for subscriptions) you may want to set a default (docs):
$user->updateDefaultPaymentMethod($paymentMethod);
I have found the solution with the help of stripe document.
Here is the reference link https://stripe.com/docs/payments/save-and-reuse?platform=web
With the use of demo i got success. And its working properly.
Thanks for another answers.
One way to do it is using Stripe's future payments. On that documentation one can find PHP examples that can be translated into Laravel.
Depending on the use case, Laravel Cashier might also be of relevance.
A Stripe account will be required (here's the Sign Up page).
Here one can find how to get up and running with a Stripe integration in PHP.
Even though related with Django, my answer here on a similar issue might be of relevance.

Laravel Cashier Without Subscription

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.

Stripe multi vendor payment gateway in Laravel

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

PayPal rest-api-sdk-php with Laravel 4

I'm trying to find out how to actually use the 'rest-api-sdk-php' with Laravel 4 ... I've updated composer and the library is ready to be used, but do I need to add an alias to the app.php file?
I've tried calling $apiContext = new ApiContext but ApiContext cannot be found.
I just don't see any reference to how to actually use this library at all.
Help initiating a call would be most apprecaited!
You can try this
A Paypal package for Laravel 4 if you need. https://github.com/xroot/laravel-paypalpayment
It internally uses the REST SDK
Try inserting the following line as the PayPal classes are under their own namespace.
use PayPal\Rest\ApiContext;
Do the same for the rest of the PayPal classes you will be using on your controller
You can try this using laravel-paypalpayment.
It is a simple package that helps you to process direct credit card payments, stored credit card payments and PayPal account payments with your Laravel 4/5 projects using PayPal REST API SDK.
Below is link given:
https://github.com/xroot/laravel-paypalpayment

Create a subscription from a previous transaction

This is an Authorize.net question...I am looking for a way to create a subscription from a previous payment a customer has made through an API call or another way instead of having to login to the Merchant Interface. I have done some research but currently have not found a way to do this. Is this possible?
Also, in the Merchant Interface, there is a "View Rebillable Transactions" button that allows you to submit a charge to a card the customer has used in the past. Is it possible to have this same functionality using an API?
Any help is appreciated!
Not yet. It's something they are considering but as of right now you can only do it either using the ARB API by making it immediately or doing it through the merchant interface.

Categories