Skip to content

Commit 444ecfa

Browse files
committed
Fix SubAccount struct in TestSubAccountCRUD
Account number should be 10 digits
1 parent 2a7324f commit 444ecfa

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

subaccount.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,11 @@ type SubAccountList struct {
3737
}
3838

3939
// Create creates a new subaccount
40-
// For more details see https://developers.paystack.co/v1.0/reference#create-subaccount
40+
// For more details see https://paystack.com/docs/api/#subaccount-create
4141
func (s *SubAccountService) Create(subaccount *SubAccount) (*SubAccount, error) {
4242
u := fmt.Sprintf("/subaccount")
4343
acc := &SubAccount{}
4444
err := s.client.Call("POST", u, subaccount, acc)
45-
4645
return acc, err
4746
}
4847

subaccount_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import "testing"
55
func TestSubAccountCRUD(t *testing.T) {
66
subAccount1 := &SubAccount{
77
BusinessName: "Sunshine Studios",
8-
SettlementBank: "Access Bank",
9-
AccountNumber: "01932",
8+
SettlementBank: "044",
9+
AccountNumber: "0193278965",
1010
PercentageCharge: 18.2,
1111
}
1212

0 commit comments

Comments
 (0)