Re: [PHP] Basic Stripe PHP question
- Date: Sat, 23 Sep 2017 18:47:16 +0530
- From: Jigar Dhulla <jigar.tidus@xxxxxxxxx>
- Subject: Re: [PHP] Basic Stripe PHP question
On Sat, Sep 23, 2017 at 1:42 AM, dealtek@xxxxxxxxx <dealtek@xxxxxxxxx>
> Hi all,
> I am starting to work with Credit card processing and stripe
> I am working with their documentation...
> The code below will create a charge...
> Stripe Basic PHP question:
> from the example below... How do I display on the page, the result of the
> active charge just created in php?
> Q: is there some return response variable that I can echo in php?
> $token = $_POST['stripeToken'];
> $customer = \Stripe\Customer::create(array(
> 'email' => 'customer@xxxxxxxxxxx <mailto:customer@xxxxxxxxxxx>',
> 'card' => $token
> $charge = \Stripe\Charge::create(array(
> 'customer' => $customer->id,
> 'amount' => 5000,
> 'currency' => 'usd'
> echo ??VAR??? - ??????? how can I show the return response variable ;
> Dave - DealTek
> Hi Dave,
Looks like you are using Stripe's PHP Library (
Looking at Basic Example (
You should "echo $charge;"