public function authorize($amount = null)
    {
        return (new AuthorizationBuilder(TransactionType::AUTH, $this))
                        ->withAmount($amount)
                        ->withOneTimePayment(true);
    }
public function authorize($amount = null)
    {
        return (new AuthorizationBuilder(TransactionType::AUTH, $this))
                        ->withAmount($amount)
                        ->withOneTimePayment(true);
    }
public function authorize ( $ amount = null ) { return ( new AuthorizationBuilder ( TransactionType :: AUTH , $ this ) ) -> withAmount ( $ amount ) -> withOneTimePayment ( true ) ; }
Creates an authorization against the payment method.

@param float|string|null $amount The amount of the transaction

@return AuthorizationBuilder
Creates an authorization against the payment method .