Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ProcessorResponseType to Transaction (#273)
What === Add ProcessorResponseType to Transaction. Why === The official SDKs now expose a ProcessorResponseType field on Transactions that indicates of a processor response is approved, soft declined or hard declined. https://developers.braintreepayments.com/reference/response/transaction#processor_response_type Fixes #227
- Loading branch information
1 parent
e642978
commit 3242ad9
Showing
3 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package braintree | ||
|
||
type ProcessorResponseType string | ||
|
||
const ( | ||
ProcessorResponseTypeApproved ProcessorResponseType = "approved" | ||
ProcessorResponseTypeSoftDeclined ProcessorResponseType = "soft_declined" | ||
ProcessorResponseTypeHardDeclined ProcessorResponseType = "hard_declined" | ||
) |
This file contains 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
This file contains 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