Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PAYMENT TxType on Server integration? #148

Closed
thatwill opened this issue Jan 22, 2020 · 3 comments
Closed

PAYMENT TxType on Server integration? #148

thatwill opened this issue Jan 22, 2020 · 3 comments
Labels

Comments

@thatwill
Copy link

The readme states the following in the Server integration section:

If `useAuthenticate` is set, then the `authorize` will use the `AUTHENTICATE`/`AUTHORISE`
method of reserving the transaction details.
If `useAuthenticate` is not set (the default) then the `DEFERRED`/`RELEASE`
method of reserving the transaction details will be used.

Seemingly this doesn't allow for a regular PAYMENT txtype - why is this the case? SagePay allows it. I cannot find an explanation for this, or a way to set the txtype manually.

Am I missing something obvious?

@judgej
Copy link
Member

judgej commented Jan 22, 2020

It just refers to variations on the authorize() method. If you want to make a payment, then use the purchase() method:

$response = $gateway->purchase([...])->send();

@judgej judgej added question awaiting response Awaiting response labels Jan 22, 2020
@thatwill
Copy link
Author

Ah, gotcha. Thanks.

@judgej
Copy link
Member

judgej commented Jan 22, 2020

Most gateways just have single authorize() and a purchase() equivalent. Sagepay just happens to have two different modes of authorize(), and you may need to use one or the other, depending on how the payment is finally going to be captured. Hopefully the default authorize() options will be what most people need.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants