-
Notifications
You must be signed in to change notification settings - Fork 460
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #622 from stripe/remi-fix-decline-charge-on
Fix decline_charge_on on the Account ressource
- Loading branch information
Showing
2 changed files
with
35 additions
and
31 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
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 |
---|---|---|
|
@@ -37,11 +37,15 @@ func TestAccountList(t *testing.T) { | |
|
||
func TestAccountNew(t *testing.T) { | ||
account, err := New(&stripe.AccountParams{ | ||
Type: stripe.String(string(stripe.AccountTypeCustom)), | ||
Country: stripe.String("CA"), | ||
BusinessURL: stripe.String("www.stripe.com"), | ||
BusinessName: stripe.String("Stripe"), | ||
BusinessPrimaryColor: stripe.String("#ffffff"), | ||
Type: stripe.String(string(stripe.AccountTypeCustom)), | ||
Country: stripe.String("CA"), | ||
BusinessURL: stripe.String("www.stripe.com"), | ||
BusinessName: stripe.String("Stripe"), | ||
BusinessPrimaryColor: stripe.String("#ffffff"), | ||
DeclineChargeOn: &stripe.AccountDeclineSettingsParams{ | ||
AVSFailure: stripe.Bool(true), | ||
CVCFailure: stripe.Bool(true), | ||
}, | ||
DebitNegativeBalances: stripe.Bool(true), | ||
SupportEmail: stripe.String("[email protected]"), | ||
SupportURL: stripe.String("www.stripe.com"), | ||
|