Документация Задать вопрос
 

Как получить все материалы?

All top-level Stripe API resources have support for bulk fetches — "list" API methods. For instance you can list charges, list customers, and list invoices.
These list API method share a common structure.
Stripe utilizes cursor-based pagination, using the parameter starting_after.
Pass starting_after to dictate where in the list you would like to begin (see below).

HTTP Status Code Summary

  • 200 OK - Everything worked as expected.
  • 400 Bad Request - Often missing a required parameter.
  • 401 Unauthorized - No valid API key provided.
  • 402 Request Failed - Parameters were valid but request failed.
  • 404 Not Found - The requested item doesn't exist.
  • 500, 502, 503, 504 Server errors - something went wrong on Stripe's end.
curl https://api.stripe.com/v1/customers \ -u sk_test_BQokikJOvBiI2HlWgH4olfQ2: require_once('./lib/Stripe.php'); Stripe::setApiKey("sk_test_BQokikJOvBiI2HlWgH4olfQ2"); Stripe_Customer::all();
{ "id": "ch_15AGN62eZvKYlo2CanI6Sm3f", "object": "charge", "created": 1418717276, "livemode": false, "paid": true, "amount": 500, "currency": "usd", "refunded": false, "captured": true, "balance_transaction": "txn_1580Xt2eZvKYlo2CyUHjtUOs", "failure_message": null, "failure_code": null, "amount_refunded": 0, "customer": null, "invoice": null, "description": null, "dispute": null, "metadata": { "order_id": "6735" }, "receipt_email": null, "receipt_number": null, "shipping": null, "refunds": { "object": "list", "total_count": 0, "has_more": false, "url": "/v1/charges/ch_15AGN62eZvKYlo2CanI6Sm3f/refunds", "data": [ ] } } { "object" => "list", "url" => "v1/customers", "has_more" => false, "data" => [ [0] => { "object": "customer", "created": 1418724149, "id": "cus_5Ky67zyZ48Jpyp", "livemode": false, "description": null, "email": "customer@example.com", "delinquent": false, "metadata": { }, "subscriptions": { "object": "list", "total_count": 0, "has_more": false, "url": "/v1/customers/cus_5Ky67zyZ48Jpyp/subscriptions", "data": [ ] }, "discount": null, "account_balance": 0, "currency": "usd", "cards": { "object": "list", "total_count": 1, "has_more": false, "url": "/v1/customers/cus_5Ky67zyZ48Jpyp/cards", "data": [ { "id": "card_15AI9r2eZvKYlo2CwKdBPGCw", "object": "card", "last4": "4242", "brand": "Visa", "funding": "credit", "exp_month": 3, "exp_year": 2019, "fingerprint": "Xt5EWLLDS7FJjR1c", "country": "US", "name": "deeparana.negi@gmail.com", "address_line1": null, "address_line2": null, "address_city": null, "address_state": null, "address_zip": null, "address_country": null, "cvc_check": "pass", "address_line1_check": null, "address_zip_check": null, "dynamic_last4": null, "customer": "cus_5Ky67zyZ48Jpyp" } ] }, "default_card": "card_15AI9r2eZvKYlo2CwKdBPGCw" } [1] => [2] => ] }
 

Заголовок H1

Заголовок H2

Заголовок H3

All top-level Stripe API resources have support for bulk fetches — "list" API methods. For instance you can list charges, list customers, and list invoices.
These list API method share a common structure.
Stripe utilizes cursor-based pagination, using the parameter starting_after.
Pass starting_after to dictate where in the list you would like to begin (see below).

  • All top-level Stripe API.
  • For instance you can.
  • These list API method.
  • Stripe utilizes cursor-based pagination.
  • Pass starting_after to dictate where.
All top-level Stripe API resources have support for bulk fetches — "list" API methods. For instance you can list charges, list customers, and list invoices.
These list API method share a common structure.
Stripe utilizes cursor-based pagination, using the parameter starting_after.
Pass starting_after to dictate where in the list you would like to begin (see below).
All top-level Stripe API resources have support for bulk fetches — "list" API methods. For instance you can list charges, list customers, and list invoices.
These list API method share a common structure.
Stripe utilizes cursor-based pagination, using the parameter starting_after.
Pass starting_after to dictate where in the list you would like to begin (see below).

Заголовок H2

Заголовок H3

   
     

Заголовок H2

Stripe utilizes cursor-based pagination, using the parameter starting_after. Pass starting_after to dictate where in the list you would like to begin (see below).
curl https://api.stripe.com/v1/customers \ -u sk_test_BQokikJOvBiI2HlWgH4olfQ2: require_once('./lib/Stripe.php'); Stripe::setApiKey("sk_test_BQokikJOvBiI2HlWgH4olfQ2"); Stripe_Customer::all();
 
curl https://api.stripe.com/v1/customers \ -u sk_test_BQokikJOvBiI2HlWgH4olfQ2: require_once('./lib/Stripe.php'); Stripe::setApiKey("sk_test_BQokikJOvBiI2HlWgH4olfQ2"); Stripe_Customer::all();
Создать бесплатный сайт с uCoz