behnampmdg3's avatar

What is a good solution for one time payments?

Hi;

Cashier seems like a great solution for recurring billing.

What is a good solution for one time payments?

I see Jeff has archived the Stripe series.

Thanks

0 likes
11 replies
shez1983's avatar

@D9705996 you say that but in the introduction of cashier it explicitly states

f 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.

D9705996's avatar

@shez1983 - I've read that documentation loads and have never noticed the big red danger box!

You can then just use

\Stripe\Stripe::setApiKey(Config::get('services.stripe.secret'));

\Stripe\Charge::create([
  "amount" => 2000,
  "currency" => "usd",
  "source" => "tok_mastercard", // obtained with Stripe.js
  "description" => "Charge for [email protected]"
]);
1 like
gcwilliams's avatar

Really just use the Stripe API directly. It is easy to work with for one off payments.

1 like
ByWaleed's avatar

@FREZNO - PayPal charges are higher than Stripe. Also, Stripe API is very useful and easy to use.

martinbean's avatar

@D9705996 Cashier is fine for one-off payments, despite the warning in the documentation. I use Cashier to capture charges for rentals in a moderate-sized video on demand site I run.

1 like
martinbean's avatar

@D9705996 - I think the warning’s more, if you’re only doing one-off charges then just use Stripe/Cashier’s SDKs directly rather than pulling in Cashier. Cashier is primarily for subscription-based charging, but can also do single charges as a “secondary” feature.

1 like

Please or to participate in this conversation.