Open jjxtra opened 4 years ago
{
"openapi": "3.0.2", "servers": [ { "url": "https://api.centrobill.com", "description": "Payment page / server-to-server endpoint" }, { "url": "http://feed.centrobill.com", "description": "Transaction history endpoint" } ], "info": { "description": "Centrobill API\n\n# Authentication\n\n", "version": "1.1.20", "title": "Centrobill Payment API" }, "security": [ { "ApiKeyAuth": [] } ], "x-tagGroups": [ { "name": "Server-to-server", "tags": [ "Payment", "Payout", "Subscription", "Site", "Product", "Service", "Verification" ] }, { "name": "Hosted payment page", "tags": [ "Payment page" ] } ], "paths": { "/paymentPage": { "post": { "tags": [ "Payment page" ], "summary": "Get URL to payment page", "description": "", "parameters": [ { "name": "X-Request-ID", "in": "header", "description": "Unique ID of request", "required": false } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "sku": { "type": "array", "items": { "oneOf": [ { "$ref": "#/components/schemas/skuWIthSiteIdAndUrl" }, { "$ref": "#/components/schemas/skuWIthSkuNameAndUrl" }, { "$ref": "#/components/schemas/skuWIthSkuNameAndCustomPriceAndUrl" } ] } }, "consumer": { "$ref": "#/components/schemas/consumerPaymentPage" }, "template": { "$ref": "#/components/schemas/templatePaymentPage" }, "payment": { "$ref": "#/components/schemas/paymentPaymentPage" }, "metadata": { "$ref": "#/components/schemas/metadata" }, "ttl": { "$ref": "#/components/schemas/ttl" } }, "required": [ "sku", "consumer" ] }, "example": { "sku": [ { "name": "TEST_EN_00", "siteId": "1811", "price": [ { "offset": "0d", "amount": 29.37, "currency": "USD", "repeat": false }, { "offset": "60d", "amount": 50, "currency": "USD", "repeat": false }, { "offset": "30d", "amount": 30, "currency": "USD", "repeat": true } ], "currency": "USD", "title": "30 day recurring + First 30 Days For Free", "url": { "redirectUrl": "https://google.com/payment/centrobill/success", "ipnUrl": "https://google.com/callback" } } ], "consumer": { "id": "59024134", "externalId": "some-12958305390", "firstname": "John", "lastname": "Doe", "email": "someuser2020130110@google.com" }, "payment": { "method": [ "card", "sepa" ], "selected": "card", "secure": true, "test": false, "mid": "s938503530f" }, "metadata": { "trackingId": "98530968732-93625235" }, "ttl": 1200 } } } }, "responses": { "201": { "$ref": "#/components/responses/paymentPage-201" }, "400": { "$ref": "#/components/responses/paymentPage-400" }, "401": { "$ref": "#/components/responses/error-401" }, "403": { "$ref": "#/components/responses/error-403" }, "500": { "$ref": "#/components/responses/error-500" } }, "callbacks": { "paymentChangeStatus": { "{$request.body.sku.ipnUrl}": { "summary": "Payment status callback", "post": { "summary": "Payment status callback", "requestBody": { "$ref": "#/components/callbacks/payment" }, "responses": { "200": { "description": "Your server implementation should return this HTTP status code\nif the data was received successfully\n" }, "201": { "description": "Your server implementation should return this HTTP status code\nif the data was received successfully\n" }, "202": { "description": "Your server implementation should return this HTTP status code\nif the data was received successfully\n" } } } } } } } }, "/tokenize": { "post": { "tags": [ "Payment" ], "summary": "Generate card data token", "parameters": [ { "name": "X-Request-ID", "in": "header", "description": "Unique ID of request", "required": false } ], "security": [], "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "title": "Credit card", "properties": { "number": { "type": "string", "minLength": "12", "maxLength": "19", "title": "Card number" }, "expirationYear": { "type": "string", "minLength": "2", "maxLength": "2", "title": "Card expiration year" }, "expirationMonth": { "type": "string", "minLength": "2", "maxLength": "2", "title": "Card expiration month" }, "cvv": { "type": "string", "minLength": "3", "maxLength": "4", "required": true, "title": "Card secure code" }, "cardHolder": { "type": "string", "minLength": "1", "maxLength": "64", "example": "John Smith", "required": false, "title": "Cardholder full name" }, "zip": { "$ref": "#/components/schemas/zip"
👋 Hey Friends, this issue has been automatically marked as stale
because it has no recent activity. It will be closed if no further activity occurs. Please add the Status: Pinned
label if you feel that this issue needs to remain open/active. Thank you for your contributions and help in keeping things tidy!
The documentation at https://github.com/octokit/octokit.graphql.net/blob/master/docs/paging.md shows how to do paging. In an attempt to do manual paging, I always get the first page, regardless of whether I use the end cursor and "after" in a vars dictionary.
Attempting to use
AllPages()...
results in a strange expression error...