samedi 28 septembre 2019

what is 'resource missing' in stripe funds transfer in laravel?

I am trying to use transfer api in laravel app but i am getting this error "No such destination :'stripe account id'. when i check log of stripe account i found that resource is missing.

this is log

Request POST body

 {
   "amount": "400",
  "currency": "usd",
   "destination": "acct_180W54CRJ51SjjGi"
 }

Response body

{
   "error": {
     "code": "resource_missing",
     "doc_url": "https://stripe.com/docs/error-codes/resource-missing",
     "message": "No such destination: acct_180W54CRJ51SjjGi",
     "param": "destination",
     "type": "invalid_request_error"

   }
 }

here is the code

 \Stripe\Stripe::setApiKey('App key');

      $transfer=  \Stripe\Transfer::create([
            "amount" => 400,
            "currency" => "usd",
            "destination" => "acct_180W54CRJ51SjjGi",

          ]);
          return $transfer;

I want to transfer funds in destination account



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire