Commit Graph

346 Commits

Author SHA1 Message Date
Seyed Hossein Hosseini Motlagh
cd3344edd1
Adds the ToDuration function to the paypalExpirationTime type. This function allows easy conversion of the internal value to a time.Duration type, which is crucial when using paypalExpirationTime values with Redis expiration times. (#265) 2024-05-27 12:36:56 +02:00
Alex Pliutau
b8f2c8c573 Use github actions 2024-05-27 12:36:25 +02:00
Penny
5fddf59f71
feat: get access token automatically (#261) 2024-02-01 10:07:34 +01:00
Albert Putra Purnama
26473c3630
Fixes test case (#259) 2023-10-04 22:31:48 +02:00
ihipop
ebf596676e
bring back landing_page option since commit #d355a65df01285c6aa4003099f8bfcb1a48ab517 (#251) 2022-11-18 15:34:38 +01:00
Akshay Prabhakant
4c16ffad0a
#177 feature/Invoice: init, added Invoice related structs, implemented met… (#249)
* feature/Invoice: init, added Invoice related structs, implemented methods:GenerateInvoiceNumber,GetInvoiceDetails(by ID)

* feature/Invoice: added implemented endpoints to README along with Usage

Co-authored-by: Akshay Prabhakant <akshayprabhakant@Akshays-MacBook-Pro.local>
2022-10-28 09:20:28 +02:00
Akshay Prabhakant
1bb626d559
Feature/private mutex (#248)
* feat/mutexPrivate:init; trying whether changes get pushed

* feat/privatedMutex: privated the mutex as a field in Client struct, added tests for this private mutex field

* feature/privateMutex: commented the composition of sync.Mutex

* feature/privateMutex: resolved issues with user credentials

Co-authored-by: Akshay Prabhakant <akshayprabhakant@Akshays-MacBook-Pro.local>
2022-10-20 09:11:49 +02:00
felipe.fuerback
f0575ee562
Refactor/code improvements (#247)
* Code improvements

* Revert log validation improvement
2022-10-07 22:07:27 +02:00
Binit kumar singh
defe3e09a4
Fix authorize order to return the correct response (#243) 2022-07-22 10:48:14 +02:00
Christopher Lorke
efc9bbdee0
Update types.go (#244)
Add missing field
2022-07-22 10:47:53 +02:00
Naoki Ikeguchi
b7d3cfd093
feat: Add missing fields into ErrorResponseDetail (#242)
* feat: Add missing fields into ErrorResponseDetail

* test: Add the example response as an unit test
2022-07-11 22:13:11 -07:00
Konnor Klashinsky
d94b350a31
add sale_id field to Refund struct (#238) 2022-06-18 22:04:53 +02:00
Konnor Klashinsky
48f8ee15ce
add payer_id field to Subscriber struct (#239) 2022-06-18 22:04:38 +02:00
Andy
7dc1f997d6
fix update order patchrequest (#240)
Co-authored-by: andy <xxxandyfenxxx@xxx.com>
2022-06-18 22:04:14 +02:00
maxzhao-bolt
c9ae5c4190
Adding PaymentMethod support into ApplicationContext (#237) 2022-03-17 11:33:06 -07:00
bartek1912
5c5393bd47
feat: add missing plan override (#229) 2022-03-05 08:16:50 +01:00
Florian Kinder
d381642422
Added PayPal-Mock-Response for capture (#232) 2022-03-05 08:16:25 +01:00
Anooj Muttavarapu
ca6845e257
Fixes updaterequest (#236)
* Fixes updaterequest

Fixes update request to support the patch request body format. https://developer.paypal.com/api/orders/v2/#definition-patch

* Change return type

Return type should only be error.

* Add nil return

Add nil return
2022-03-05 08:15:53 +01:00
uwevil
fc3ffe5b60
fix typing close #234 (#235) 2022-02-25 09:08:14 +01:00
Alex Pliutau
bf9103c70e
Merge pull request #231 from madprogramer/master
Potential fix for Issue 230
2021-11-11 12:48:32 +01:00
Ahmet Akkoç
bf0c207b52
Added spaces
`} else {`
2021-11-10 23:33:48 +01:00
Ahmet Akkoç
28f2333770
Fixed else syntax 2021-11-08 10:21:28 +01:00
Ahmet Akkoç
d815f6d8d9 Potential fix for Issue 230 2021-11-07 20:37:12 +01:00
Alex Pliutau
1a2c109908
Merge pull request #227 from emead/master
Add status field to CaptureAmount
2021-10-05 13:32:59 +02:00
Edwin Mead
50acd8fce1 Add status field to CaptureAmount 2021-10-04 15:01:28 +01:00
Nik Bisht
64bfbc9b80
Update ReAuthorization call parameters (#226) 2021-09-27 20:34:39 -07:00
Alex Pliutau
6fb262a2b0 License 2021 2021-09-17 08:45:25 +02:00
Alex Pliutau
7599a2d162 #201: add SUBSCRIBE_NOW 2021-09-17 08:44:39 +02:00
Alex Pliutau
ef48df5471
Merge pull request #223 from Yuusuke8686/fix_#219
Fix Reauthorize authorized payment parameter #219
2021-09-17 08:41:32 +02:00
Alex Pliutau
5a5daa8596
Merge pull request #224 from TariqueNasrullah/master
Grammatical error and Typo fixed in comments
2021-09-17 08:41:10 +02:00
Alex Pliutau
cbabac29c8
Merge pull request #225 from RensTillmann/patch-1
Added missing `items` on `PurchaseUnit` struct
2021-09-17 08:40:48 +02:00
Rens Tillmann
e6a47fe5e7
Added missing items on PurchaseUnit struct
When you call `GetOrder()` paypal also returns the items for `purchase_unit` ref: https://developer.paypal.com/docs/api/orders/v2/#definition-purchase_unit
The `PurchaseUnit` struct was missing this parameter.
2021-09-17 00:56:14 +02:00
TariqueNasrullah
59e3c9f3b0 fixed typo 2021-09-13 00:54:22 +06:00
TariqueNasrullah
326d69cc9e fixed grammatical error 2021-09-13 00:53:49 +06:00
Yuusuke Miyatake
4ab23e5f78 #219: fix parameter 2021-08-25 00:05:57 +09:00
rohanr-bolt
06067823c6
Add cancel billing agreement function (#222) 2021-08-19 10:29:00 -07:00
kenbolt
d5cba40cd6
Adding partner referral response (#217)
* Adding links to refund response

* Adding partner referral response
2021-07-27 15:56:29 -07:00
Cameron Jarnot
c2074af736
Update payment source type for optional fields (#216)
* updated payment source fields

* revert

* update payment source type
2021-07-27 11:59:36 -07:00
Dario Nevistić
297b4fa2c6
Updating Order with missing fields (#215)
* Update Order struct with API /v2 response fields according to the documentation https://developer.paypal.com/docs/api/orders/v2/\#orders_get

* Add order completed unmarshal response  unit test
2021-07-27 16:37:20 +02:00
kenbolt
8e5d5220ab
Adding links to refund response (#213) 2021-07-26 16:13:23 -07:00
Cameron Jarnot
2d088532de
Re-adding billing agreements endpoint (#212)
* adding billing_agreements.go file

* added new types

* added tests

* added notice of deprecation
2021-07-21 07:53:38 +02:00
Cameron Jarnot
f195993596
deletions made (#209) 2021-07-20 08:37:55 +02:00
Thomas Frössman
d2210adf9c
Convert depracation comments to godoc and deprecate Resource struct. (#207)
* Fix deprecation comment formatting for godoc.

* Deprecate Resource struct
2021-07-20 08:37:23 +02:00
Gerasimovich Igor
7f2eec9b56
Added missing BillingAgreementId key in webhook (#205)
* Added missing BillingAgreementId key in webhook

Webhook resource contains `billing_agreement_id`. Exists in type: `PAYMENT.SALE.COMPLETED` when a subscription is paid.

* review fix
2021-07-14 09:08:11 +02:00
Cameron Jarnot
392c0e9d69
Add create billing agreement from token (#204)
* Add create billing agreement from token
2021-07-13 10:14:56 -07:00
Cameron Jarnot
a3977a8e74
Adding functions for requesting billing agreement token (#203)
* created billing agreements file

* CreateBillingAgreementToken created with new types

* updated formatting

* error to return nil

* removed new line

* added test
2021-07-12 11:25:19 +02:00
Alex Pliutau
021cc68201
Merge pull request #199 from thomasf/remove-invalid-events
remove invalid event structs
2021-04-30 08:07:26 +02:00
Thomas Frössman
bbd66c6089 remove invalid event structs 2021-04-29 22:11:13 +02:00
Alex Pliutau
41099f6b6e fix typo in PaymentInstruction 2021-04-10 18:17:20 +02:00
Alex Pliutau
ed294ef317 #160: add PAY_NOW user action 2021-04-10 18:16:14 +02:00