-
Notifications
You must be signed in to change notification settings - Fork 48
Description
Kindly see if there's need for an update to this library.
I am getting an error 400 while trying to create a subaccount.
sa, err := r.Paystack.SubAccount.Create(&paystack.SubAccount{
BusinessName: *data.Name,
SettlementBank: *data.Bank,
AccountNumber: *data.AccountNumber,
PercentageCharge: PercentageCharge,
SettlementSchedule: SettlementSchedule,
PrimaryContactEmail: *data.Email,
Metadata: metadata,
})
if err != nil {
return nil, err
}
{\"code\":400,\"details\":{},\"url\":{\"Scheme\":\"https\",\"Opaque\":\"\",\"User\":null,\"Host\":\"api.paystack.co\",\"Path\":\"/subaccount\",\"RawPath\":\"\",\"ForceQuery\":false,\"RawQuery\":\"\",\"Fragment\":\"\"},\"header\":{\"Access-Control-Allow-Origin\":[\"*\"],\"Cf-Cache-Status\":[\"DYNAMIC\"],\"Cf-Ray\":[\"548097858dd2cdb7-CDG\"],\"Content-Length\":[\"64\"],\"Content-Type\":[\"application/json; charset=utf-8\"],\"Date\":[\"Fri, 20 Dec 2019 09:29:26 GMT\"],\"Etag\":[\"W/\\\"40-IhinKFxsDy9hOhy0AlnrOg\\\"\"],\"Expect-Ct\":[\"max-age=604800, report-uri=\\\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\\\"\"],\"Server\":[\"cloudflare\"],\"Set-Cookie\":[\"__cfduid=d966225626d511709c7deeaa7f9fc4a0c1576834166; expires=Sun, 19-Jan-20 09:29:26 GMT; path=/; domain=.paystack.co; HttpOnly; SameSite=Lax; Secure\",\"sails.sid=s%3AbLrbTdaDSSzE3xP9RhdNBkJkz68T0hrU.ElX48nd0jxKE%2BTOfOyxbNvv6ILMTTgxlgJcRlPZatdI; Path=/; HttpOnly; Secure\"],\"Strict-Transport-Security\":[\"max-age=15552000; includeSubDomains; preload\"],\"Vary\":[\"X-HTTP-Method-Override, Accept-Encoding\"],\"X-Content-Type-Options\":[\"nosniff\"],\"X-Powered-By\":[\"Sails \\u003csailsjs.org\\u003e\"]}}