Using a basic JSON Swagger format, I would like to create a PayPal payment. 
I need to include the following types: *intent*, *sale*, and *transaction* 
(as stipulated in PayPal API docs 
<https://developer.paypal.com/docs/integration/direct/make-your-first-call/>) 
in a payment request - But I need help doing so. 

Could anybody assist me on how to structure a basic swagger spec file for a 
PayPal payment? *NOTE:* OAuth is already configured in our platform that 
uses the access tokens and headers.

Below is my swagger file:
{
  "swagger": "2.0",
  "info": {
    "description": "this is a payment request to through PayPal",
    "title": "Swagger PayPal Payment",
    "version": "1.0.0"
  },
    "host": "api.sandbox.paypal.com",
    "basePath": "/v1/payments",
    "schemes": [ "https" ],
  "paths": {
    "/payment":
    {
      "post": {
        "summary": "Creates a payment"
        "description": "Creates a payment request to Paypal",


        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  }
} 

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to