Trustly/Api/signed.php
public function registerAccount($enduserid, $clearinghouse, $banknumber,
		$accountnumber, $firstname, $lastname, $mobilephone=NULL,
		$nationalidentificationnumber=NULL, $address=NULL,
		$email=NULL, $dateofbirth=NULL,
		$addresscountry=NULL, $addresspostalcode=NULL,
		$addresscity=NULL, $addressline1=NULL,
		$addressline2=NULL) {

			$data = array(
				'EndUserID' => $enduserid,
				'ClearingHouse' => $clearinghouse,
				'BankNumber' => $banknumber,
				'AccountNumber' => $accountnumber,
				'Firstname' => $firstname,
				'Lastname' => $lastname,
			);

			$attributes = array(
				'MobilePhone' => $mobilephone,
				'NationalIdentificationNumber' => $nationalidentificationnumber,
				'Email' => $email,
				'DateOfBirth' => $dateofbirth,
				'AddressCountry' => $addresscountry,
				'AddressPostalcode' => $addresspostalcode,
				'AddressCity' => $addresscity,
				'AddressLine1' => $addressline1,
				'AddressLine2' => $addressline2,
				'Address' => $address,
			);

			$request = new Trustly_Data_JSONRPCRequest('RegisterAccount', $data, $attributes);
			return $this->call($request);
	}
public function registerAccount($enduserid, $clearinghouse, $banknumber,
		$accountnumber, $firstname, $lastname, $mobilephone=NULL,
		$nationalidentificationnumber=NULL, $address=NULL,
		$email=NULL, $dateofbirth=NULL,
		$addresscountry=NULL, $addresspostalcode=NULL,
		$addresscity=NULL, $addressline1=NULL,
		$addressline2=NULL) {

			$data = array(
				'EndUserID' => $enduserid,
				'ClearingHouse' => $clearinghouse,
				'BankNumber' => $banknumber,
				'AccountNumber' => $accountnumber,
				'Firstname' => $firstname,
				'Lastname' => $lastname,
			);

			$attributes = array(
				'MobilePhone' => $mobilephone,
				'NationalIdentificationNumber' => $nationalidentificationnumber,
				'Email' => $email,
				'DateOfBirth' => $dateofbirth,
				'AddressCountry' => $addresscountry,
				'AddressPostalcode' => $addresspostalcode,
				'AddressCity' => $addresscity,
				'AddressLine1' => $addressline1,
				'AddressLine2' => $addressline2,
				'Address' => $address,
			);

			$request = new Trustly_Data_JSONRPCRequest('RegisterAccount', $data, $attributes);
			return $this->call($request);
	}
public function registerAccount ( $ enduserid , $ clearinghouse , $ banknumber , $ accountnumber , $ firstname , $ lastname , $ mobilephone = NULL , $ nationalidentificationnumber = NULL , $ address = NULL , $ email = NULL , $ dateofbirth = NULL , $ addresscountry = NULL , $ addresspostalcode = NULL , $ addresscity = NULL , $ addressline1 = NULL , $ addressline2 = NULL ) { $ data = array ( 'EndUserID' => $ enduserid , 'ClearingHouse' => $ clearinghouse , 'BankNumber' => $ banknumber , 'AccountNumber' => $ accountnumber , 'Firstname' => $ firstname , 'Lastname' => $ lastname , ) ; $ attributes = array ( 'MobilePhone' => $ mobilephone , 'NationalIdentificationNumber' => $ nationalidentificationnumber , 'Email' => $ email , 'DateOfBirth' => $ dateofbirth , 'AddressCountry' => $ addresscountry , 'AddressPostalcode' => $ addresspostalcode , 'AddressCity' => $ addresscity , 'AddressLine1' => $ addressline1 , 'AddressLine2' => $ addressline2 , 'Address' => $ address , ) ; $ request = new Trustly_Data_JSONRPCRequest ( 'RegisterAccount' , $ data , $ attributes ) ; return $ this -> call ( $ request ) ; }
Call the registerAccount API Method.

Registers and verifies the format of an account to be used in
AccountPayout.

@see https://trustly.com/en/developer/api#/registeraccount

@param string $enduserid ID, username, hash or anything uniquely
identifying the end-user holding this account. Preferably the same
ID/username as used in the merchant's own backoffice in order to
simplify for the merchant's support department.

@param string $clearinghouse The clearing house of the end-user's bank
account. Typically the name of a country in uppercase but might
also be IBAN.

@param string $banknumber The bank number identifying the end-user's
bank in the given clearing house.

@param string $accountnumber The account number, identifying the
end-user's account in the bank.

@param string $firstname The account holders firstname.

@param string $lastname The account holders lastname.

@param string $mobilephone The mobile phonenumber to the account holder
in international format. This is used for KYC and AML routines.

@param string $email The email address of the end user.

@param string $dateofbirth The ISO 8601 date of birth of the end user.

@param string $nationalidentificationnumber The account holder's social
security number / personal number / birth number / etc. Useful for
some banks for identifying transactions and KYC/AML.

@param string $addresscountry The ISO 3166-1-alpha-2 code of the
account holders country.
Use either these separated fields or use the $address field below
if you do not keep separated address fields.

@param string $addresspostalcode The postal code of the account holder
address.

@param string $addresscity The city of the account holder address.

@param string $addressline1 The first line of the account holder
address field.

@param string $addressline2 The second line of the account holder
address information.

@param string $address The account holders address

@return Trustly_Data_JSONRPCSignedResponse
Call the registerAccount API Method .