mirror of
https://github.com/plutov/paypal.git
synced 2025-01-23 10:21:03 +01:00
Merge pull request #224 from TariqueNasrullah/master
Grammatical error and Typo fixed in comments
This commit is contained in:
commit
5a5daa8596
|
@ -68,7 +68,7 @@ func (c *Client) VoidAuthorization(ctx context.Context, authID string) (*Authori
|
||||||
}
|
}
|
||||||
|
|
||||||
// ReauthorizeAuthorization reauthorize a Paypal account payment.
|
// ReauthorizeAuthorization reauthorize a Paypal account payment.
|
||||||
// PayPal recommends to reauthorize payment after ~3 days
|
// PayPal recommends reauthorizing payment after ~3 days
|
||||||
// Endpoint: POST /v2/payments/authorizations/ID/reauthorize
|
// Endpoint: POST /v2/payments/authorizations/ID/reauthorize
|
||||||
func (c *Client) ReauthorizeAuthorization(ctx context.Context, authID string, a *Amount) (*Authorization, error) {
|
func (c *Client) ReauthorizeAuthorization(ctx context.Context, authID string, a *Amount) (*Authorization, error) {
|
||||||
buf := bytes.NewBuffer([]byte(`{"amount":{"currency":"` + a.Currency + `","total":"` + a.Total + `"}}`))
|
buf := bytes.NewBuffer([]byte(`{"amount":{"currency":"` + a.Currency + `","total":"` + a.Total + `"}}`))
|
||||||
|
|
|
@ -78,7 +78,7 @@ func (c *Client) SetReturnRepresentation() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Send makes a request to the API, the response body will be
|
// Send makes a request to the API, the response body will be
|
||||||
// unmarshaled into v, or if v is an io.Writer, the response will
|
// unmarshalled into v, or if v is an io.Writer, the response will
|
||||||
// be written to it without decoding
|
// be written to it without decoding
|
||||||
func (c *Client) Send(req *http.Request, v interface{}) error {
|
func (c *Client) Send(req *http.Request, v interface{}) error {
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -124,7 +124,7 @@ func (c *Client) VerifyWebhookSignature(ctx context.Context, httpReq *http.Reque
|
||||||
return response, nil
|
return response, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetWebhooksEventTypes - Lists all webhook event types.
|
// GetWebhookEventTypes - Lists all webhook event types.
|
||||||
// Endpoint: GET /v1/notifications/webhooks-event-types
|
// Endpoint: GET /v1/notifications/webhooks-event-types
|
||||||
func (c *Client) GetWebhookEventTypes(ctx context.Context) (*WebhookEventTypesResponse, error) {
|
func (c *Client) GetWebhookEventTypes(ctx context.Context) (*WebhookEventTypesResponse, error) {
|
||||||
req, err := c.NewRequest(ctx, http.MethodGet, fmt.Sprintf("%s%s", c.APIBase, "/v1/notifications/webhooks-event-types"), nil)
|
req, err := c.NewRequest(ctx, http.MethodGet, fmt.Sprintf("%s%s", c.APIBase, "/v1/notifications/webhooks-event-types"), nil)
|
||||||
|
|
|
@ -51,7 +51,7 @@ func (c *Client) GetWebProfile(ctx context.Context, profileID string) (*WebProfi
|
||||||
return &wp, nil
|
return &wp, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetWebProfiles retreieves web experience profiles from Paypal
|
// GetWebProfiles retrieves web experience profiles from Paypal
|
||||||
//
|
//
|
||||||
// Endpoint: GET /v1/payment-experience/web-profiles
|
// Endpoint: GET /v1/payment-experience/web-profiles
|
||||||
func (c *Client) GetWebProfiles(ctx context.Context) ([]WebProfile, error) {
|
func (c *Client) GetWebProfiles(ctx context.Context) ([]WebProfile, error) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user