Trustly/Api/signed.php
public function selectAccount($notificationurl, $enduserid, $messageid,
		$locale=NULL, $country=NULL, $ip=NULL, $successurl=NULL, $urltarget=NULL,
		$mobilephone=NULL, $firstname=NULL, $lastname=NULL, $holdnotifications=NULL,
		$email=NULL, $dateofbirth=NULL, $requestdirectdebitmandate=NULL) {

			$data = array(
				'NotificationURL' => $notificationurl,
				'EndUserID' => $enduserid,
				'MessageID' => $messageid,
			);

			$attributes = array(
				'Locale' => $locale,
				'Country' => $country,
				'IP' => $ip,
				'SuccessURL' => $successurl,
				'URLTarget' => $urltarget,
				'MobilePhone' => $mobilephone,
				'Firstname' => $firstname,
				'Lastname' => $lastname,
				'Email' => $email,
				'DateOfBirth' => $dateofbirth,
			);

			if($holdnotifications) {
				$attributes['HoldNotifications'] = 1;
			}
			if($requestdirectdebitmandate) {
				$attributes['RequestDirectDebitMandate'] = 1;
			}

			$request = new Trustly_Data_JSONRPCRequest('SelectAccount', $data, $attributes);
			return $this->call($request);
	}
public function selectAccount($notificationurl, $enduserid, $messageid,
		$locale=NULL, $country=NULL, $ip=NULL, $successurl=NULL, $urltarget=NULL,
		$mobilephone=NULL, $firstname=NULL, $lastname=NULL, $holdnotifications=NULL,
		$email=NULL, $dateofbirth=NULL, $requestdirectdebitmandate=NULL) {

			$data = array(
				'NotificationURL' => $notificationurl,
				'EndUserID' => $enduserid,
				'MessageID' => $messageid,
			);

			$attributes = array(
				'Locale' => $locale,
				'Country' => $country,
				'IP' => $ip,
				'SuccessURL' => $successurl,
				'URLTarget' => $urltarget,
				'MobilePhone' => $mobilephone,
				'Firstname' => $firstname,
				'Lastname' => $lastname,
				'Email' => $email,
				'DateOfBirth' => $dateofbirth,
			);

			if($holdnotifications) {
				$attributes['HoldNotifications'] = 1;
			}
			if($requestdirectdebitmandate) {
				$attributes['RequestDirectDebitMandate'] = 1;
			}

			$request = new Trustly_Data_JSONRPCRequest('SelectAccount', $data, $attributes);
			return $this->call($request);
	}
public function selectAccount ( $ notificationurl , $ enduserid , $ messageid , $ locale = NULL , $ country = NULL , $ ip = NULL , $ successurl = NULL , $ urltarget = NULL , $ mobilephone = NULL , $ firstname = NULL , $ lastname = NULL , $ holdnotifications = NULL , $ email = NULL , $ dateofbirth = NULL , $ requestdirectdebitmandate = NULL ) { $ data = array ( 'NotificationURL' => $ notificationurl , 'EndUserID' => $ enduserid , 'MessageID' => $ messageid , ) ; $ attributes = array ( 'Locale' => $ locale , 'Country' => $ country , 'IP' => $ ip , 'SuccessURL' => $ successurl , 'URLTarget' => $ urltarget , 'MobilePhone' => $ mobilephone , 'Firstname' => $ firstname , 'Lastname' => $ lastname , 'Email' => $ email , 'DateOfBirth' => $ dateofbirth , ) ; if ( $ holdnotifications ) { $ attributes [ 'HoldNotifications' ] = 1 ; } if ( $ requestdirectdebitmandate ) { $ attributes [ 'RequestDirectDebitMandate' ] = 1 ; } $ request = new Trustly_Data_JSONRPCRequest ( 'SelectAccount' , $ data , $ attributes ) ; return $ this -> call ( $ request ) ; }
Call the selectAccount API Method.

Initiates a new order where the end-user can select and verify one of
his/her bank accounts.

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

@param string $notificationurl The URL to which notifications for this
order should be sent to. This URL should be hard to guess and not
contain a ? ("question mark").

@param string $enduserid ID, username, hash or anything uniquely
identifying the end-user to be identified. 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 $messageid Your unique ID for the account selection order.
Each order you create must have an unique MessageID.

@param string $locale The end-users localization preference in the
format [language[_territory]]. Language is the ISO 639-1 code and
territory the ISO 3166-1-alpha-2 code.

@param string $country The ISO 3166-1-alpha-2 code of the end-user's
country. This will be used for preselecting the correct country for
the end-user in the iframe.

@param string $ip The IP-address of the end-user.

@param string $successurl The URL to which the end-user should be
redirected after he/she has completed the initial identification
process. Do not put any logic on that page since it's not
guaranteed that the end-user will in fact visit it.

@param string $urltarget The html target/framename of the SuccessURL. Only _top, _self and _parent are suported.

@param string $mobilephone The mobile phonenumber to the end-user in international format.

@param string $firstname The end-user's firstname.

@param string $lastname The end-user's lastname.

@param boolean $holdnotifications Do not deliver notifications for this
order. This is a parameter available when using test.trustly.com
and can be used for manually delivering notifications to your local
system during development. Intead you can get you notifications on
https://test.trustly.com/notifications.html

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

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

@param boolean $requestdirectdebitmandate Initiate a direct debit
mandate request for the selected account.

@return Trustly_Data_JSONRPCSignedResponse
Call the selectAccount API Method .