*/ $cardToken = new CardToken('2943002', '277'); /** * Create new Request with params: * * Config object * Order object * Billing object * Delivery (or Billing object again, if you want to have the delivery address the same as the billing address) * User object */ $request = new Request($cfg, $order, $billing, $delivery, $user); /** * Add the Card Token to the Request */ $request->setCardToken($cardToken); /** * Create new API Client, passing the Config object as parameter */ $client = new Client($cfg); /** * Will throw different Exceptions on errors */ try { /** * Sends the Request to ALU and returns a Response * * See documentation for Response params */ $response = $client->pay($request); /**