how to fill customer email stripe checkout

Solutions on MaxInterview for how to fill customer email stripe checkout by the best coders in the world

showing results for - "how to fill customer email stripe checkout"
Luigi
20 Jun 2016
1$session = \Stripe\Checkout\Session::create([ 
2 'payment_method_types' => ['card'], 
3 'line_items' => [[ 
4  'price_data' => [ 
5   'product_data' => [ 
6    'name' => $productName, 
7    'metadata' => [ 
8     'pro_id' => $productID 
9    ] 
10   ], 
11   'unit_amount' => $stripeAmount, 
12   'currency' => $currency, 
13  ], 
14  'quantity' => 1, 
15  'description' => $productName, 
16 ]], 
17 'mode' => 'payment', 
18 'success_url' => STRIPE_SUCCESS_URL.'?session_id={CHECKOUT_SESSION_ID}', 
19 'cancel_url' => STRIPE_CANCEL_URL,
20 'customer_email' => 'john.doe@codexworld.com'
21]);
22
23
24#https://www.fiverr.com/tamerjarrar