Skip to content

Commit 795f176

Browse files
author
Andy Pieters
committed
addMerchant now uses v3 API
1 parent cd49572 commit 795f176

File tree

3 files changed

+239
-535
lines changed

3 files changed

+239
-535
lines changed

samples/addMerchant.php

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
$result = \Paynl\Alliance\Merchant::add(
77
array(
88
// Required
9-
'companyName' => 'allianceAddTest',
10-
'cocNumber' => '54212458',
9+
'companyName' => 'Addv3Test',
10+
'cocNumber' => '54292456',
1111
'street' => 'Kopersteden',
1212
'houseNumber' => '10',
1313
'postalCode' => '7547 TK',
@@ -16,38 +16,52 @@
1616
'accounts' => array(
1717
// Minimum of 1 account, you can add more, one account must be primary, the other accounts cannot be primary
1818
array(
19-
'primary' => true,
20-
// One account must be primary
2119
'email' => 'email@test.nl',
2220
'firstname' => 'Andy',
2321
'lastname' => 'Pieters',
2422
'gender' => 'male',
2523
'authorisedToSign' => 2,
2624
//0 not authorised, 1 authorised independently, 2 shared authority to sign
27-
'ubo' => true,
28-
// Ultimate beneficial owner (25% of more shares)
25+
'ubo' => 50, //percentage of shares
26+
'hasAccess'=> true,
27+
// 'language' => 'nl',
28+
'useCompanyAuth' => true // All company rights
2929
),
3030
array(
31-
'primary' => false,
3231
'email' => 'email2@test.nl',
3332
'firstname' => 'Mede',
3433
'lastname' => 'Eigenaar',
3534
'gender' => 'female',
3635
'authorisedToSign' => 2,
3736
//0 not authorised, 1 authorised independently, 2 shared authority to sign
38-
'ubo' => true,
39-
// Ultimate beneficial owner (25% of more shares)
37+
'ubo' => 25, //percentage of shares
38+
'hasAccess'=> true,
39+
// 'language' => 'en',
40+
'useCompanyAuth' => false // All company rights
4041
),
4142
array(
42-
'primary' => false,
4343
'email' => 'email4@test.nl',
4444
'firstname' => 'Mede',
4545
'lastname' => 'Eigenaar',
4646
'gender' => 'female',
4747
'authorisedToSign' => 2,
4848
//0 not authorised, 1 authorised independently, 2 shared authority to sign
49-
'ubo' => true,
50-
// Ultimate beneficial owner (25% of more shares)
49+
'ubo' => 25, //percentage of shares
50+
'hasAccess'=> false,
51+
// 'language' => 'de',
52+
'useCompanyAuth' => false // All company rights
53+
),
54+
array(
55+
'email' => 'email5@test.nl',
56+
'firstname' => 'Mede',
57+
'lastname' => 'Eigenaar2',
58+
'gender' => 'female',
59+
'authorisedToSign' => 0,
60+
//0 not authorised, 1 authorised independently, 2 shared authority to sign
61+
'ubo' => false, //percentage of shares
62+
'hasAccess'=> true,
63+
// 'language' => 'de',
64+
'useCompanyAuth' => false // All company rights
5165
),
5266
),
5367

@@ -64,7 +78,7 @@
6478
'bankAccountOwner' => 'Andy Pieters',
6579
'bankAccountNumber' => 'NL91ABNA0417164300',
6680
'bankAccountBIC' => 'ABNANL2A',
67-
'vatNumber' => 'NL123412413',
81+
// 'vatNumber' => 'NL807960147B01',
6882
'packageName' => 'Alliance', // Alliance or AlliancePlus
6983

7084
// 'referralProfileId' => 'CP-1234-1234', // Only use this if you know what it is

0 commit comments

Comments
 (0)