Advertisement
hmunoz-stripe

Customer with address in PHP

Sep 15th, 2020
1,031
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.25 KB | None | 0 0
  1. $address = [
  2.   'line1' => '123 South St',
  3.   'city' => 'New York City',
  4.   'postal_code' => '11111',
  5.   'state' => 'NY',
  6.   'country' => 'US'
  7. ];
  8.  
  9. try {
  10.   $customer = \Stripe\Customer::create([
  11.     'address' => $address,
  12.   ]);
  13.   echo $customer;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement