Eric Lee
5822d5ee58
Print error details in addition to message and http code ( #131 )
...
* Print error details in addition to message and http code
* %v -> %+v
2019-12-16 16:34:48 -08:00
Eric Lee
16c52d39ba
Update item struct to match paypal model ( #129 )
...
* Update item struct to match paypal model
* test
2019-11-20 22:12:36 -08:00
Eric Lee
5feda2cf5e
Update payment capture response type to include links ( #128 )
2019-11-18 14:44:42 -08:00
chaseadams509
a6e6c7ae98
Add partner overrides to referral request ( #124 )
...
* Add partner overrides to referral request
Add this object:
https://developer.paypal.com/docs/api/partner-referrals/v2/#definition-partner_configuration_override
* Update types.go
2019-10-11 11:54:25 -07:00
chaseadams509
bffc96851f
Add types to support Partner Referral API ( #123 )
...
* Add types to support Partner Referral API
Add in the type structs to allow a POST call to v2/customer/partner-referrals
It sends a ReferralRequest, and returns a response of type Resource with only Links populated
https://developer.paypal.com/docs/api/partner-referrals/v2/
* Pointer for optional field
* Update types.go
Co-Authored-By: Roopak Venkatakrishnan <roopak.v@gmail.com>
2019-10-10 14:36:25 -07:00
chaseadams509
c865af7932
Add Webhook data types ( #120 )
...
* Add Webhook data types
Add the Event data types for payment capture and merchant onboarding events, which are sent for PayPal Commerce Platform integrations.
* remove unnecessary empty line
* name change and points for omitempty objects
* Update types.go
Co-Authored-By: Roopak Venkatakrishnan <roopak.v@gmail.com>
2019-09-25 13:44:33 -07:00
Eric Lee
c4226ce43c
Fix authorizations ( #119 )
...
Fix authorizations
2019-09-24 12:34:56 -07:00
Roopak Venkatakrishnan
cd72fd3aec
Add verify webhook signature response ( #117 )
2019-09-19 08:03:42 -07:00
Roopak Venkatakrishnan
fee7108fae
Fix payment capture
2019-09-06 08:00:21 -07:00
Alvaro Carvajal
c0ae3c0d06
Add custom_id to captured orders ( #114 )
2019-09-03 13:39:22 -07:00
Alex Pliutau
e70e544c1a
Update package name
2019-08-21 15:50:20 +02:00
Alex Pliutau
035df40512
Fix go lint
2019-08-21 13:16:54 +02:00
Roopak Venkatakrishnan
167f2d58ab
Add more type definitions
2019-08-20 23:24:18 -07:00
Alex Pliutau
fb6ff6be3d
Fix go rerpotr card issues
2019-08-19 15:33:46 +02:00
Alex Pliutau
61f8ec387c
#105 : Add override_merchant_preferences to BillingAgreement
2019-08-12 16:09:45 +02:00
Chris Kolenko
188f7c26fc
Add fields to ApplicationContext
...
* ReturnURL
* CancelURL
2019-08-07 01:28:11 +10:00
Dennis Stritzke
cce5baf4a0
Adding item category and shipping preference.
2019-08-05 16:12:34 +02:00
Dennis Stritzke
04ab7f83a0
Adding support for PayPal Order to contain the order breakdown and Items to contain UnitAmounts.
2019-08-02 12:17:49 +02:00
Alex Pliutau
224bd1f949
#89 : Add UpdateOrder
2019-07-30 15:12:58 +02:00
Alex Pliutau
0862ea5ecc
Merge pull request #90 from logpacker/payment-source
...
#89 : V2: Add payment-source type
2019-07-22 14:56:01 +02:00
Alex Pliutau
586d690e8e
Merge pull request #99 from roopakv/roopakv/fix_address
...
Update shipping address to reflect paypal API
2019-07-22 09:03:44 +02:00
Roopak Venkatakrishnan
ed0c8f85a0
fix payer for orders
2019-07-21 18:29:26 -07:00
Roopak Venkatakrishnan
80ccf89d37
Update shipping address to reflect paypal API
2019-07-21 12:46:13 -07:00
Alex Pliutau
3f993bc542
Add payment-source type
2019-07-21 09:28:07 +02:00
Alex Pliutau
da794934b8
Merge pull request #96 from roopakv/roopakv/fix_app_ctxt
...
Fix app context
2019-07-19 08:54:22 +02:00
Roopak Venkatakrishnan
265abe72b2
Fix app context
2019-07-18 22:21:31 -07:00
Roopak Venkatakrishnan
e6cc18e840
Merge branch 'master' into roopakv/tiny_fix
2019-06-28 21:01:15 -07:00
Roopak Venkatakrishnan
a329399695
more fixes
2019-06-28 21:00:29 -07:00
Roopak Venkatakrishnan
f51b1fe7a0
fixes
2019-06-27 11:39:07 -07:00
Roopak Venkatakrishnan
dd82be9889
use specific payee
2019-06-27 10:55:21 -07:00
Roopak Venkatakrishnan
fd873cc35b
Create Order API Call
2019-06-26 21:16:21 -07:00
tungquach
561690178b
update order struct, add purchase units
2019-04-21 11:43:53 +07:00
tungquach
4557d3e5a7
update order struct
2019-04-21 10:44:07 +07:00
Alex Pliutau
4d9251997c
Payments V2
2019-03-27 09:27:53 +01:00
Antoine Pourchet
bb976e776e
Locking SendWithAuth to fix race condition
...
When SendWithAuth gets called in a multithreaded environment on the
same Client object, a concurrent read and write of c.Token might happen
in GetAccessToken.
This patch solves the issue by locking the client while we get a new
access token in SendWithAuth.
2019-02-26 23:26:37 -08:00
Alex Pliutau
9c283e9d42
#69 : add payment response
2018-12-16 13:26:41 +01:00
Alex Pliutau
2eacad2d5d
#71 Quantity field of Item struct type must change from string to uint32 type
2018-12-16 13:06:54 +01:00
Alex Pliutau
e7b24a69f2
#66 : fix item.quantity type
2018-10-11 15:59:54 +07:00
Vincent Biret-Chaussat
174211b78b
feat: adds ApplicationContext support
2018-08-28 10:43:53 +01:00
Bryce Kahle
732c3d08bf
Add temporary field to webexperience profile
2018-06-14 11:40:51 -04:00
Cameron Webley
99da38f9c2
add payee struct to Transaction
2018-04-19 16:56:10 -05:00
mlgd
7f6d76c5bd
Add missing url fields in transaction
...
Add NotifyURL et OrderURL
2018-03-20 17:56:13 +01:00
Alex Pliutau
d1c1dd2026
Merge pull request #51 from lordkhonsu/master
...
added json field `transaction_fee` to Sale struct
2018-02-08 13:49:07 +07:00
soyer
4ef3a06b52
Add allowed_payment_method option
2018-02-07 21:01:07 +01:00
Robert Schmalholz
535dec8992
use existing Currency struct for transaction_fee
2018-01-22 16:32:18 +01:00
Robert Schmalholz
96b47cc1ed
added json field transaction_fee
to Sale struct
2018-01-22 14:05:43 +01:00
Rodney Smith
3ca3bc9a11
Add additional returned fields to ExecutePayment; Add PatchPayment() capability, and unit tests
2018-01-13 23:37:24 -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
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
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
Alex Pliutau
08326c3caa
#40 Change Details type to be a map
2017-10-14 16:51:13 +07:00
Alex Pliutau
36bba2d583
Fix linter issues
2017-10-02 22:30:39 -05:00
Robert McNeil
0144d81813
Add sender_batch_id to payout SenderBatchHeader object
2017-10-02 17:12:42 +11: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
f788a0929c
int in str unmarshall fixed
2017-08-24 18:03:34 +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
1f84980013
BillingAgreement definition
2017-07-23 09:50:02 +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
3b03097b1b
Merge branch 'master' into feature-http-client
2017-07-09 21:20:19 +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
d06b0102ce
Fix access token refresh
2017-07-06 18:52:39 -04:00
Marcelo Monaco
dde90cce4c
The payer_id property is being deprecated in favor of the external_customer_id property.
2017-05-25 18:27:19 -03:00
Marcelo Monaco
8192718364
The payer_id property is being deprecated in favor of the external_customer_id property.
2017-05-25 18:16:33 -03:00
Jonathan Weber
13492e99b9
change type of Item.Amount from string to int to get it working with the newest PayPal API
2017-01-27 15:00:29 +01:00
Aliaksandr Pliutau
7e723285e7
Fixed #11
2016-12-19 12:55:00 +07:00
Nic West
1be8989df5
add web experience profile endpoints
2016-10-26 16:10:06 +01:00
Aliaksandr Pliutau
1af34f3631
Item.Quantity is string now
2016-10-24 13:49:11 +07:00
Aliaksandr Pliutau
891cbb0eca
type comments fix
2016-10-24 11:36:23 +07:00
Aliaksandr Pliutau
f65c5dc88e
Fixed #15
2016-09-19 11:39:05 +07:00
Micah Lapping-Carr
975b15beb3
Update structs to include more member structs.
2016-08-18 09:53:22 -07:00
Ivan Pusic
26351642ed
add expires_in field to TokenResponse
...
hard to know when to refresh token without this field
2016-07-20 21:19:05 +02:00
Aliaksandr Pliutau
2771e6788b
gofmt
2016-05-16 17:04:23 +07:00
Anthony Poschen
f6bd5b385e
CHANGE: Renamed 'SetLogFile' to 'SetLog' and changed the parameter from a string to io.Writer
...
CHANGE: Changed logFile name and type to name Log of type io.Writer
CHANGE: func log of client now uses new log object.
2016-05-14 15:39:35 +10:00
Aliaksandr Pliutau
172960ac0a
func (r *ErrorResponse) Error()
2016-02-22 16:22:00 +07:00
Aliaksandr Pliutau
ebc7c22c7c
#7 CreateSinglePayout
2016-02-17 11:10:49 +07:00
Aliaksandr Pliutau
2f9803548f
GET /v1/identity/openidconnect/userinfo/?schema=openid
2016-01-20 11:17:19 +07:00
Aliaksandr Pliutau
3f5e093801
godoc comments
2015-12-29 16:21:11 +07:00
Aliaksandr Pliutau
61cd126fbe
Orders
2015-12-17 14:50:25 +07:00
Aliaksandr Pliutau
27411f215f
Sale functions
2015-12-17 10:56:49 +07:00
Aliaksandr Pliutau
0c8d78e8a2
GetAuthorization, CreatePayment, tests, README
2015-12-01 11:35:25 +07:00
Aliaksandr Pliutau
fcccd51161
GetPayment, GetPayments
2015-11-25 17:30:25 +07:00
Aliaksandr Pliutau
83bba562c8
rel
2015-11-20 15:07:34 +07:00
Aliaksandr Pliutau
5043557577
log
2015-11-20 09:51:18 +07:00
Alexander Plutov
3e1a1f8ddd
struct change
2015-11-19 23:19:49 +07:00
Aliaksandr Pliutau
f02e62e440
ExecutePayment
2015-11-16 12:11:27 +07:00
Aliaksandr Pliutau
14f3dc03a7
payment test function
2015-11-02 16:39:07 +07:00
Aliaksandr Pliutau
ab760e8561
types
2015-11-02 10:34:16 +07:00
Aliaksandr Pliutau
3a2323e1ef
little fixes after understanding
2015-10-30 14:02:32 +07:00
Aliaksandr Pliutau
71e0a81e64
new types
2015-10-23 09:29:36 +07:00
Aliaksandr Pliutau
0277b266bf
GetRefreshToken
2015-10-16 17:00:57 +07:00
Aliaksandr Pliutau
c0396a16be
GetAuthorizationCodeURL
2015-10-15 15:47:36 +07:00
Alexander Plutov
54034e1d72
GetAccessToken
2015-10-15 12:43:50 +07:00
Alexander Plutov
a4a6af6695
Initial types
2015-10-14 12:30:28 +07:00