PayPal REST API - Amount is null while retrieving the Authorization
up vote
0
down vote
favorite
This issue happened yesterday. While retrieving Authorization via API it seems Amount is not being included (as show below on Postman). I am not sure if I have missed anything or if anything has changed with Paypal API as this was working fine for over a year without any issue.
{
"id": "AUTH0R1ZAT1ON1D",
"create_time": "2018-11-02T15:00:00Z",
"state": "pending",
"valid_until": "2018-12-01T15:00:00Z",
"links": [
{
"href": "https://api.paypal.com/v1/payments/authorization/AUTH0R1ZAT1ON1D",
"rel": "self",
"method": "GET"
},
{
"href": "https://api.paypal.com/v1/payments/authorization/AUTH0R1ZAT1ON1D/capture",
"rel": "capture",
"method": "POST"
},
{
"href": "https://api.paypal.com/v1/payments/authorization/AUTH0R1ZAT1ON1D/void",
"rel": "void",
"method": "POST"
},
{
"href": "https://api.paypal.com/v1/payments/authorization/AUTH0R1ZAT1ON1D/reauthorize",
"rel": "reauthorize",
"method": "POST"
}
]
}
But if I were to use retrieve already 'captured' authorization from while back, the Amount is included as expected.
Update: If I retrieve Payment using payment_id, it seems to Amount is included in the Authorization object. Also just today one of the Authorization created is including the Amount as expected. These are all for the same Payer.
c# paypal paypal-rest-sdk
add a comment |
up vote
0
down vote
favorite
This issue happened yesterday. While retrieving Authorization via API it seems Amount is not being included (as show below on Postman). I am not sure if I have missed anything or if anything has changed with Paypal API as this was working fine for over a year without any issue.
{
"id": "AUTH0R1ZAT1ON1D",
"create_time": "2018-11-02T15:00:00Z",
"state": "pending",
"valid_until": "2018-12-01T15:00:00Z",
"links": [
{
"href": "https://api.paypal.com/v1/payments/authorization/AUTH0R1ZAT1ON1D",
"rel": "self",
"method": "GET"
},
{
"href": "https://api.paypal.com/v1/payments/authorization/AUTH0R1ZAT1ON1D/capture",
"rel": "capture",
"method": "POST"
},
{
"href": "https://api.paypal.com/v1/payments/authorization/AUTH0R1ZAT1ON1D/void",
"rel": "void",
"method": "POST"
},
{
"href": "https://api.paypal.com/v1/payments/authorization/AUTH0R1ZAT1ON1D/reauthorize",
"rel": "reauthorize",
"method": "POST"
}
]
}
But if I were to use retrieve already 'captured' authorization from while back, the Amount is included as expected.
Update: If I retrieve Payment using payment_id, it seems to Amount is included in the Authorization object. Also just today one of the Authorization created is including the Amount as expected. These are all for the same Payer.
c# paypal paypal-rest-sdk
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
This issue happened yesterday. While retrieving Authorization via API it seems Amount is not being included (as show below on Postman). I am not sure if I have missed anything or if anything has changed with Paypal API as this was working fine for over a year without any issue.
{
"id": "AUTH0R1ZAT1ON1D",
"create_time": "2018-11-02T15:00:00Z",
"state": "pending",
"valid_until": "2018-12-01T15:00:00Z",
"links": [
{
"href": "https://api.paypal.com/v1/payments/authorization/AUTH0R1ZAT1ON1D",
"rel": "self",
"method": "GET"
},
{
"href": "https://api.paypal.com/v1/payments/authorization/AUTH0R1ZAT1ON1D/capture",
"rel": "capture",
"method": "POST"
},
{
"href": "https://api.paypal.com/v1/payments/authorization/AUTH0R1ZAT1ON1D/void",
"rel": "void",
"method": "POST"
},
{
"href": "https://api.paypal.com/v1/payments/authorization/AUTH0R1ZAT1ON1D/reauthorize",
"rel": "reauthorize",
"method": "POST"
}
]
}
But if I were to use retrieve already 'captured' authorization from while back, the Amount is included as expected.
Update: If I retrieve Payment using payment_id, it seems to Amount is included in the Authorization object. Also just today one of the Authorization created is including the Amount as expected. These are all for the same Payer.
c# paypal paypal-rest-sdk
This issue happened yesterday. While retrieving Authorization via API it seems Amount is not being included (as show below on Postman). I am not sure if I have missed anything or if anything has changed with Paypal API as this was working fine for over a year without any issue.
{
"id": "AUTH0R1ZAT1ON1D",
"create_time": "2018-11-02T15:00:00Z",
"state": "pending",
"valid_until": "2018-12-01T15:00:00Z",
"links": [
{
"href": "https://api.paypal.com/v1/payments/authorization/AUTH0R1ZAT1ON1D",
"rel": "self",
"method": "GET"
},
{
"href": "https://api.paypal.com/v1/payments/authorization/AUTH0R1ZAT1ON1D/capture",
"rel": "capture",
"method": "POST"
},
{
"href": "https://api.paypal.com/v1/payments/authorization/AUTH0R1ZAT1ON1D/void",
"rel": "void",
"method": "POST"
},
{
"href": "https://api.paypal.com/v1/payments/authorization/AUTH0R1ZAT1ON1D/reauthorize",
"rel": "reauthorize",
"method": "POST"
}
]
}
But if I were to use retrieve already 'captured' authorization from while back, the Amount is included as expected.
Update: If I retrieve Payment using payment_id, it seems to Amount is included in the Authorization object. Also just today one of the Authorization created is including the Amount as expected. These are all for the same Payer.
c# paypal paypal-rest-sdk
c# paypal paypal-rest-sdk
edited Nov 8 at 12:37
asked Nov 7 at 15:03
user5481980
85
85
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53192106%2fpaypal-rest-api-amount-is-null-while-retrieving-the-authorization%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown