This repository was archived by the owner on Oct 31, 2024. It is now read-only.
Changed RedirectURLs to pointer from slice#4
Merged
pengux merged 1 commit intoleebenson:masterfrom Mar 20, 2015
nazwa:hotfix/urls
Merged
Changed RedirectURLs to pointer from slice#4pengux merged 1 commit intoleebenson:masterfrom nazwa:hotfix/urls
pengux merged 1 commit intoleebenson:masterfrom
nazwa:hotfix/urls
Conversation
Contributor
Author
|
This is what comes back from a request with a slice:
And response with a pointer: {
"intent": "sale",
"payer": {
"payment_method": "paypal",
"payer_info": {
"shipping_address": {
"line1": "",
"city": "",
"country_code": ""
}
}
},
"transactions": [
{
"amount": {
"currency": "GBP",
"total": "10.00",
"details": {
"subtotal": "10.00"
}
},
"description": "Points"
}
],
"id": "PAY-5GS05962PW1226719KUF6WKA",
"create_time": "2015-03-20T09:40:56Z",
"state": "created",
"update_time": "2015-03-20T09:40:56Z",
"links": [
{
"href": "https://api.sandbox.paypal.com/v1/payments/payment/PAY-5GS05962PW1226719KUF6WKA",
"rel": "self",
"method": "GET",
"enctype": ""
},
{
"href": "https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-8J9661131N9664043",
"rel": "approval_url",
"method": "REDIRECT",
"enctype": ""
},
{
"href": "https://api.sandbox.paypal.com/v1/payments/payment/PAY-5GS05962PW1226719KUF6WKA/execute",
"rel": "execute",
"method": "POST",
"enctype": ""
}
]
} |
pengux
pushed a commit
that referenced
this pull request
Mar 20, 2015
Changed RedirectURLs to pointer from slice
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Redirect urls are kept in a single struct, not a slice.