forked from go-packages/paypal
Add to readme
This commit is contained in:
parent
fd873cc35b
commit
c85effd4a6
|
@ -34,6 +34,7 @@ Currently supports **v2** only, if you want to use **v1**, use **v1.1.4** git ta
|
||||||
* GET /v2/payments/sale/**ID**
|
* GET /v2/payments/sale/**ID**
|
||||||
* POST /v2/payments/sale/**ID**/refund
|
* POST /v2/payments/sale/**ID**/refund
|
||||||
* GET /v2/payments/refund/**ID**
|
* GET /v2/payments/refund/**ID**
|
||||||
|
* POST /v2/checkout/orders
|
||||||
* GET /v2/checkout/orders/**ID**
|
* GET /v2/checkout/orders/**ID**
|
||||||
* POST /v2/checkout/orders/**ID**/authorize
|
* POST /v2/checkout/orders/**ID**/authorize
|
||||||
* POST /v2/checkout/orders/**ID**/capture
|
* POST /v2/checkout/orders/**ID**/capture
|
||||||
|
@ -108,6 +109,12 @@ refund, err := c.GetRefund("O-4J082351X3132253H")
|
||||||
order, err := c.GetOrder("O-4J082351X3132253H")
|
order, err := c.GetOrder("O-4J082351X3132253H")
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Create an Order
|
||||||
|
|
||||||
|
```go
|
||||||
|
order, err := c.CreateOrder(paypalsdk.OrderIntentCapture, []paypalsdk.PurchaseUnitRequest{paypalsdk.PurchaseUnitRequest{ReferenceID: "ref-id", Amount: paypalsdk.Amount{Total: "7.00", Currency: "USD"}}})
|
||||||
|
```
|
||||||
|
|
||||||
### Authorize Order
|
### Authorize Order
|
||||||
|
|
||||||
```go
|
```go
|
||||||
|
|
Loading…
Reference in New Issue
Block a user