Alex Pliutau
acdf616064
Merge pull request #53 from soyersoyer/master
...
Add allowed_payment_method option
2018-02-08 13:48:30 +07:00
soyer
4ef3a06b52
Add allowed_payment_method option
2018-02-07 21:01:07 +01:00
Alex Pliutau
7c225b0dd2
Merge pull request #50 from rodneyswa/master
...
Add additional returned fields to ExecutePayment; Add PatchPayment() …
2018-01-15 11:26:49 +07:00
Rodney Smith
3ca3bc9a11
Add additional returned fields to ExecutePayment; Add PatchPayment() capability, and unit tests
2018-01-13 23:37:24 -07:00
Alex Pliutau
e6df3b7cfe
Merge pull request #48 from logpacker/refactor/err-handling-if-one-line
...
Make one-line if err != nil conditions
2017-11-23 09:20:10 +07:00
Alex Pliutau
cd22892aec
Make one-line if err != nil conditions
2017-11-23 09:15:11 +07:00
Alex Pliutau
be5f959441
Merge pull request #47 from schoukri/add_payout_methods
...
Add payout methods: GetPayout, GetPayoutItem, and CancelPayoutItem
2017-11-10 09:18:00 +07:00
Sam Choukri
8c5eb07be8
fixed json unmarshaling of ErrorResponse in PaymentItem
2017-11-07 17:56:24 -08:00
Sam Choukri
f1166b8b90
Added methods: GetPayout, GetPayoutItem, and CancelPayoutItem
2017-11-07 15:58:58 -08:00
Alex Pliutau
f52224cf7e
Merge pull request #45 from schoukri/master
...
Fix json parsing of the `details` field in API error responses
2017-10-29 14:45:24 +07:00
Alex Pliutau
481eb3337f
Merge pull request #44 from NicholasAsimov/fix-granttokenfromauthocode
...
Fix GrantNewAccessTokenFromAuthCode method
2017-10-29 14:44:47 +07:00
Sam Choukri
3beae33bc0
Fix json parsing of the details
field in API error responses with a new ErrorResponseDetail
type.
...
The `details` field in the json response from API errors is an array of json objects (not a single object).
Also, the value for the "link" object is not a string but rather another nested array of json objects.
The parsing of the `details` json field is now correctly unmarshalled into a new `ErrorResponseDetail` type
instead of the previously broken `map[string]string` type.
2017-10-26 10:15:12 -07:00
Alex Pliutau
c95c0b9449
Merge pull request #43 from NicholasAsimov/fix-zero-time
...
Set correct "zero time" in SetAccessToken
2017-10-26 08:23:13 +07:00
Nicholas Asimov
06b13fe21f
Fix GrantNewAccessTokenFromAuthCode method.
...
Changes made:
1. Body is sent as a form-urlencoded values instead of json
2. Basic auth is used for authorization instead of an access token
2017-10-21 16:24:02 +03:00
Nicholas Asimov
ac5b4d7658
PayPal returns booleans in user info as strings. Notify json unmarshaler about that
2017-10-21 16:23:56 +03:00
Nicholas Asimov
6bc1110944
Correctly handle the case when PayPal returns token expires_in field as a string
...
Credit goes to oauth2 package.
https://github.com/golang/oauth2/blob/master/internal/token.go#L62
2017-10-21 16:23:48 +03:00
Nicholas Asimov
96fea7c1ae
Set correct "zero time" in SetAccessToken
2017-10-21 16:22:04 +03:00
Alex Pliutau
08326c3caa
#40 Change Details type to be a map
2017-10-14 16:51:13 +07:00
Alex Pliutau
9e9173db8d
Merge pull request #39 from logpacker/bugfix/go_linting
...
Fix linter issues
2017-10-02 22:34:11 -05:00
Alex Pliutau
36bba2d583
Fix linter issues
2017-10-02 22:30:39 -05:00
Alex Pliutau
1bdb88fd4b
Merge pull request #38 from porty/specify-payout-sender-batch-id
...
Add sender_batch_id to payout SenderBatchHeader object
2017-10-02 19:59:24 -05:00
Robert McNeil
0144d81813
Add sender_batch_id to payout SenderBatchHeader object
2017-10-02 17:12:42 +11:00
Alex Pliutau
a54f82dc61
Merge pull request #35 from logpacker/feature/go_19
...
Add Go 1.9 support in Travis
2017-09-27 18:40:50 -05:00
Alex Pliutau
b1a843f748
Merge pull request #37 from logpacker/issue/31
...
Change deprecated POST payout?sync_mode=true to async
2017-09-27 18:40:43 -05:00
Alex Pliutau
b5e9ae1c2d
Merge pull request #36 from logpacker/issue/33
...
#33 Send only Plan ID when create agreement
2017-09-27 18:40:36 -05:00
Alex Pliutau
693bf6c166
Fix IT
2017-09-27 17:20:09 -05:00
Alex Pliutau
03d54d5563
#31 Change deprecated POST payout?sync_mode=true to async
2017-09-27 17:19:02 -05:00
Alex Pliutau
b12ee60c90
#33 Send only Plan ID when create agreement
2017-09-27 17:16:10 -05:00
Alex Pliutau
8b01e9c860
Add Go 1.9 support in Travis
2017-09-27 17:10:33 -05:00
Alex Pliutau
f48535a92e
Merge pull request #34 from florin-rada/amount_details
...
Added Details Struct and added Details Member to Amount struct
2017-09-27 17:06:14 -05:00
Rada Florin
9ae117226f
Cleanup from editing.
2017-09-26 18:37:31 +03:00
Rada Florin
f9d30e2c20
Added Details Struct and added Details Member to Amount struct so payments that includ shipping cost can be send with the Transaction struct
2017-09-26 18:26:02 +03:00
envy124
d30e9ced1e
Merge pull request #32 from logpacker/feature_billing_plan
...
Feature billing plan
2017-09-08 14:26:30 +03:00
envy124
87b4c45133
billing endpoints
2017-09-06 11:15:21 +03:00
envy124
f788a0929c
int in str unmarshall fixed
2017-08-24 18:03:34 +03:00
envy124
08b9849c20
BillingExample name config fixed
2017-08-24 17:43:41 +03:00
envy124
ce8c1014ec
ExecuteApprovedAgreement added
2017-08-24 13:22:46 +03:00
envy124
d4da804af2
MerchantPreferences.SetupFee omitempty
2017-08-24 09:08:31 +03:00
envy124
3f9821784c
example billing test
2017-07-27 17:46:02 +03:00
envy124
1f84980013
BillingAgreement definition
2017-07-23 09:50:02 +03:00
envy124
77c97c8824
ActivatePlan definition
2017-07-22 15:54:57 +03:00
envy124
e033a62fe2
CreateBillingPlan definition
2017-07-22 14:54:28 +03:00
envy124
f12db62995
PaymentDefinition add ID field
2017-07-22 14:48:16 +03:00
envy124
cd4c6831c7
billing structures
2017-07-20 12:07:11 +03:00
Alex Pliutau
6745ee0f80
Merge pull request #30 from vvakame/feature-http-client
...
Add SetHTTPClient function to *Client
2017-07-09 21:21:42 +07:00
Alex Pliutau
3b03097b1b
Merge branch 'master' into feature-http-client
2017-07-09 21:20:19 +07:00
Alex Pliutau
24bb73cc93
Merge pull request #29 from brycekahle/fix-token-refresh
...
Fix access token refresh
2017-07-09 21:18:39 +07:00
vvakame
c9eb8b7137
Add SetHTTPClient function to *Client
...
When we use GoogleAppEngine/Go environment, We should replace http.Client to urlfetch.Client.
2017-07-07 18:57:02 +09:00
Bryce Kahle
a4e4a4476c
Use t.Sub(time.Now()) because time.Until isn't available until go 1.8
2017-07-06 19:08:37 -04:00
Bryce Kahle
d06b0102ce
Fix access token refresh
2017-07-06 18:52:39 -04:00