diff --git a/README.md b/README.md index ba0dc62..dc86373 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ +[![Go Report Card](https://goreportcard.com/badge/logpacker/PayPal-Go-SDK)](https://goreportcard.com/report/logpacker/PayPal-Go-SDK) [![Build Status](https://travis-ci.org/logpacker/PayPal-Go-SDK.svg?branch=master)](https://travis-ci.org/logpacker/PayPal-Go-SDK) [![Godoc](http://img.shields.io/badge/godoc-reference-blue.svg?style=flat)](https://godoc.org/github.com/logpacker/PayPal-Go-SDK) [![Chat at https://gitter.im/logpacker/PayPal-Go-SDK](https://img.shields.io/badge/gitter-dev_chat-46bc99.svg)](https://gitter.im/logpacker/PayPal-Go-SDK?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) diff --git a/doc.go b/doc.go index 5b84342..7fd5294 100644 --- a/doc.go +++ b/doc.go @@ -4,7 +4,7 @@ The first thing you do is to create a Client (you can select API base URL using c, err := paypalsdk.NewClient("clientID", "secretID", paypalsdk.APIBaseSandBox) Then you can get an access token from PayPal: accessToken, err := c.GetAccessToken() -After you have an access token you can call built-in funtions to get data from PayPal. +After you have an access token you can call built-in functions to get data from PayPal. paypalsdk will assign all responses to go structures. */ package paypalsdk diff --git a/order.go b/order.go index 5c64e97..ab1ad9d 100644 --- a/order.go +++ b/order.go @@ -2,7 +2,7 @@ package paypalsdk import "fmt" -// GetOrder retreives order by ID +// GetOrder retrieves order by ID // Endpoint: GET /v1/payments/orders/ID func (c *Client) GetOrder(orderID string) (*Order, error) { order := &Order{} diff --git a/types_test.go b/types_test.go index 8e6a73e..1a85eb6 100644 --- a/types_test.go +++ b/types_test.go @@ -1,6 +1,6 @@ package paypalsdk -// These tests test responses convertion from JSON to golang structs +// These tests test responses conversion from JSON to golang structs import ( "encoding/json"