hps / heartland-php

Heartland Payment Systems Payment Gateway PHP SDK
https://developer.heartlandpaymentsystems.com/SecureSubmit/
GNU General Public License v2.0
25 stars 23 forks source link

Which Method I use for CreditAdditionalAuth in HpsCreditService #25

Closed bony-corcrm closed 6 years ago

bony-corcrm commented 7 years ago

Hello,

I am trying to Re-Auth the previously Auth transaction. Which function should I use for that. I am using HpsCreditService.

Thanks

slogsdon commented 7 years ago

Hi @bony-corcrm! We don't currently have support for CreditAdditionalAuth in our PHP SDK at this time, but it's something that is on our roadmap.

bony-corcrm commented 7 years ago

Hello Shane,

Thanks for response, Also can you please let me know about the

cardPresent readerPresent

How to pass these token in the time of charge,authorize,capture. I am checking code and find function _hydrateManualEntry which is used in HpsCreditService, But we are not passing cardPresent, readerPresent these two parameters. Can you please help me in setting these as I doing the the test case for the heartland.

Thanks

slogsdon commented 7 years ago

@bony-corcrm, You will want to use HpsFluentCreditService for this. The builders exposed will have withCardPresent and withReaderPresent methods to set those flags, e.g.:

$service = new HpsFluentCreditService($config);
$response = $service->charge()
    ->withToken($token)
    ->withCardPresent(true)
    ->withReaderPresent(true)
    ->execute();