Ted
0
Q:

non-inr transactions in india should have shipping/billing address outside india

Some solutions that can help : 

https://stackoverflow.com/questions/59282024/export-transactions-require-a-customer-name-and-address-stripe-error
https://stackoverflow.com/questions/34415987/stripe-payment-getting-error-as-customer-cus-does-not-have-a-linked-card
0
$customer = Customer::create([
   'name'          => $order->customer->first_name . ' ' . $order->customer->last_name,
   'email'         => $order->customer->email,
   "source"        => $token,
   "description"   => "Total Order Value",
   'address'   => [
   'line1'         => $order->customer->address,
   'postal_code'   => $order->customer->zip,
   'city'          => $order->customer->city,
   'state'         => $order->customer->state,
   'country'       => $order->customer->country,
   ]
]);

// Charge the user's card:
Charge::create(array(
  'customer'                          => $customer->id,
  "amount"                            => $amount,
  "currency"                          => "USD",
  "description"                       => "Total Order Value",
  "shipping[name]"                    => $order->customer->first_name . ' ' . $order->customer->last_name,
  "shipping[address][line1]"          => $order->customer->address,
  "shipping[address][postal_code]"    => $order->customer->zip,
  "shipping[address][city]"           => $order->customer->city,
  "shipping[address][state]"          => "San Francisco",
  "shipping[address][country]"        => "CA",
));
0

New to Communities?

Join the community