Skip to content

Commit

Permalink
12.17-issue-11-flag-fix: version change updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Vivek-Singh-Chouhan committed Apr 19, 2021
1 parent a110448 commit 99e4987
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
= CnpOnline CHANGELOG

==Version 12.17.1 (April 19, 2021)
* BugFix: Fixed delete batch files flag in CnpResponseProcessor

==Version 12.17.0 (October 30, 2020)
* Feature: Added businessIndicator support to forceCapture, captureGivenAuth, sale, credit, authorization

Expand Down
2 changes: 1 addition & 1 deletion cnp/sdk/CnpOnline.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*/
namespace cnp\sdk;
define('CURRENT_XML_VERSION', '12.17');
define('CURRENT_SDK_VERSION', 'PHP;12.17.0');
define('CURRENT_SDK_VERSION', 'PHP;12.17.1');
define('MAX_TXNS_PER_BATCH', 100000);
define('MAX_TXNS_PER_REQUEST', 500000);
define('CNP_CONFIG_LIST', 'user,password,merchantId,timeout,proxy,reportGroup,version,url,cnp_requests_path,batch_requests_path,sftp_username,sftp_password,batch_url,tcp_port,tcp_ssl,tcp_timeout,print_xml,vantivPublicKeyID,gpgPassphrase,useEncryption,deleteBatchFiles,multiSite,multiSiteErrorThreshold,maxHoursWithoutSwitch,printMultiSiteDebug,multiSiteUrl1,multiSiteUrl2,sftp_timeout');
Expand Down
4 changes: 2 additions & 2 deletions cnp/sdk/Test/functional/CnpRequestFunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function test_addBatch()
$this->assertFalse(file_exists($fn2));


$expected = '<batchRequestmerchantId="0180-xml10"merchantSdk="PHP;12.17.0"authAmount="0"numAuths="0"saleAmount="123"numSales="1"creditAmount="0"numCredits="0"giftCardCreditAmount="0"numGiftCardCredits="0"numTokenRegistrations="0"numTranslateToLowValueTokenRequests="0"transactionReversalAmount="0"numTransactionReversals="0"captureGivenAuthAmount="0"numCaptureGivenAuths="0"forceCaptureAmount="0"numForceCaptures="0"authReversalAmount="0"numAuthReversals="0"giftCardAuthReversalOriginalAmount="0"numGiftCardAuthReversals="0"captureAmount="0"numCaptures="0"giftCardCaptureAmount="0"numGiftCardCaptures="0"echeckVerificationAmount="0"numEcheckVerification="0"echeckCreditAmount="0"numEcheckCredit="0"numEcheckRedeposit="0"echeckSalesAmount="0"numEcheckSales="0"numUpdateCardValidationNumOnTokens="0"numUpdateSubscriptions="0"numCancelSubscriptions="0"numCreatePlans="0"numUpdatePlans="0"numActivates="0"activateAmount="0"numDeactivates="0"numLoads="0"loadAmount="0"numUnloads="0"unloadAmount="0"numBalanceInquirys="0"numAccountUpdates="0"numEcheckPreNoteSale="0"numEcheckPreNoteCredit="0"submerchantCreditAmount="0"numSubmerchantCredit="0"payFacCreditAmount="0"numPayFacCredit="0"payoutOrgCreditAmount="0"numPayoutOrgCredit="0"reserveCreditAmount="0"numReserveCredit="0"vendorCreditAmount="0"numVendorCredit="0"customerCreditAmount="0"numCustomerCredit="0"physicalCheckCreditAmount="0"numPhysicalCheckCredit="0"submerchantDebitAmount="0"numSubmerchantDebit="0"payFacDebitAmount="0"numPayFacDebit="0"payoutOrgDebitAmount="0"numPayoutOrgDebit="0"reserveDebitAmount="0"numReserveDebit="0"vendorDebitAmount="0"numVendorDebit="0"customerDebitAmount="0"numCustomerDebit="0"physicalCheckDebitAmount="0"numPhysicalCheckDebit="0"numFundingInstructionVoid="0"numFastAccessFunding="0"fastAccessFundingAmount="0">
$expected = '<batchRequestmerchantId="0180-xml10"merchantSdk="PHP;12.17.1"authAmount="0"numAuths="0"saleAmount="123"numSales="1"creditAmount="0"numCredits="0"giftCardCreditAmount="0"numGiftCardCredits="0"numTokenRegistrations="0"numTranslateToLowValueTokenRequests="0"transactionReversalAmount="0"numTransactionReversals="0"captureGivenAuthAmount="0"numCaptureGivenAuths="0"forceCaptureAmount="0"numForceCaptures="0"authReversalAmount="0"numAuthReversals="0"giftCardAuthReversalOriginalAmount="0"numGiftCardAuthReversals="0"captureAmount="0"numCaptures="0"giftCardCaptureAmount="0"numGiftCardCaptures="0"echeckVerificationAmount="0"numEcheckVerification="0"echeckCreditAmount="0"numEcheckCredit="0"numEcheckRedeposit="0"echeckSalesAmount="0"numEcheckSales="0"numUpdateCardValidationNumOnTokens="0"numUpdateSubscriptions="0"numCancelSubscriptions="0"numCreatePlans="0"numUpdatePlans="0"numActivates="0"activateAmount="0"numDeactivates="0"numLoads="0"loadAmount="0"numUnloads="0"unloadAmount="0"numBalanceInquirys="0"numAccountUpdates="0"numEcheckPreNoteSale="0"numEcheckPreNoteCredit="0"submerchantCreditAmount="0"numSubmerchantCredit="0"payFacCreditAmount="0"numPayFacCredit="0"payoutOrgCreditAmount="0"numPayoutOrgCredit="0"reserveCreditAmount="0"numReserveCredit="0"vendorCreditAmount="0"numVendorCredit="0"customerCreditAmount="0"numCustomerCredit="0"physicalCheckCreditAmount="0"numPhysicalCheckCredit="0"submerchantDebitAmount="0"numSubmerchantDebit="0"payFacDebitAmount="0"numPayFacDebit="0"payoutOrgDebitAmount="0"numPayoutOrgDebit="0"reserveDebitAmount="0"numReserveDebit="0"vendorDebitAmount="0"numVendorDebit="0"customerDebitAmount="0"numCustomerDebit="0"physicalCheckDebitAmount="0"numPhysicalCheckDebit="0"numFundingInstructionVoid="0"numFastAccessFunding="0"fastAccessFundingAmount="0">
<sale reportGroup="Planets" id="1211"><orderId>2111</orderId><amount>123</amount><orderSource>ecommerce</orderSource>
<card><type>VI</type><number>4100000000000000</number><expDate>1213</expDate><cardValidationNum>1213</cardValidationNum></card></sale>
</batchRequest>';
Expand Down Expand Up @@ -172,7 +172,7 @@ public function test_closeRequest()
$expected = '<cnpRequest numBatchRequests="1" version="12.17" xmlns="http://www.vantivcnp.com/schema">
<authentication><user>XXXXX</user><password>XXXXX</password></authentication>
<batchRequestmerchantId="0180-xml10"merchantSdk="PHP;12.17.0"authAmount="0"numAuths="0"saleAmount="123"numSales="1"creditAmount="0"numCredits="0"giftCardCreditAmount="0"numGiftCardCredits="0"numTokenRegistrations="0"numTranslateToLowValueTokenRequests="0"transactionReversalAmount="0"numTransactionReversals="0"captureGivenAuthAmount="0"numCaptureGivenAuths="0"forceCaptureAmount="0"numForceCaptures="0"authReversalAmount="0"numAuthReversals="0"giftCardAuthReversalOriginalAmount="0"numGiftCardAuthReversals="0"captureAmount="0"numCaptures="0"giftCardCaptureAmount="0"numGiftCardCaptures="0"echeckVerificationAmount="0"numEcheckVerification="0"echeckCreditAmount="0"numEcheckCredit="0"numEcheckRedeposit="0"echeckSalesAmount="0"numEcheckSales="0"numUpdateCardValidationNumOnTokens="0"numUpdateSubscriptions="0"numCancelSubscriptions="0"numCreatePlans="0"numUpdatePlans="0"numActivates="0"activateAmount="0"numDeactivates="0"numLoads="0"loadAmount="0"numUnloads="0"unloadAmount="0"numBalanceInquirys="0"numAccountUpdates="0"numEcheckPreNoteSale="0"numEcheckPreNoteCredit="0"submerchantCreditAmount="0"numSubmerchantCredit="0"payFacCreditAmount="0"numPayFacCredit="0"payoutOrgCreditAmount="0"numPayoutOrgCredit="0"reserveCreditAmount="0"numReserveCredit="0"vendorCreditAmount="0"numVendorCredit="0"customerCreditAmount="0"numCustomerCredit="0"physicalCheckCreditAmount="0"numPhysicalCheckCredit="0"submerchantDebitAmount="0"numSubmerchantDebit="0"payFacDebitAmount="0"numPayFacDebit="0"payoutOrgDebitAmount="0"numPayoutOrgDebit="0"reserveDebitAmount="0"numReserveDebit="0"vendorDebitAmount="0"numVendorDebit="0"customerDebitAmount="0"numCustomerDebit="0"physicalCheckDebitAmount="0"numPhysicalCheckDebit="0"numFundingInstructionVoid="0"numFastAccessFunding="0"fastAccessFundingAmount="0">
<batchRequestmerchantId="0180-xml10"merchantSdk="PHP;12.17.1"authAmount="0"numAuths="0"saleAmount="123"numSales="1"creditAmount="0"numCredits="0"giftCardCreditAmount="0"numGiftCardCredits="0"numTokenRegistrations="0"numTranslateToLowValueTokenRequests="0"transactionReversalAmount="0"numTransactionReversals="0"captureGivenAuthAmount="0"numCaptureGivenAuths="0"forceCaptureAmount="0"numForceCaptures="0"authReversalAmount="0"numAuthReversals="0"giftCardAuthReversalOriginalAmount="0"numGiftCardAuthReversals="0"captureAmount="0"numCaptures="0"giftCardCaptureAmount="0"numGiftCardCaptures="0"echeckVerificationAmount="0"numEcheckVerification="0"echeckCreditAmount="0"numEcheckCredit="0"numEcheckRedeposit="0"echeckSalesAmount="0"numEcheckSales="0"numUpdateCardValidationNumOnTokens="0"numUpdateSubscriptions="0"numCancelSubscriptions="0"numCreatePlans="0"numUpdatePlans="0"numActivates="0"activateAmount="0"numDeactivates="0"numLoads="0"loadAmount="0"numUnloads="0"unloadAmount="0"numBalanceInquirys="0"numAccountUpdates="0"numEcheckPreNoteSale="0"numEcheckPreNoteCredit="0"submerchantCreditAmount="0"numSubmerchantCredit="0"payFacCreditAmount="0"numPayFacCredit="0"payoutOrgCreditAmount="0"numPayoutOrgCredit="0"reserveCreditAmount="0"numReserveCredit="0"vendorCreditAmount="0"numVendorCredit="0"customerCreditAmount="0"numCustomerCredit="0"physicalCheckCreditAmount="0"numPhysicalCheckCredit="0"submerchantDebitAmount="0"numSubmerchantDebit="0"payFacDebitAmount="0"numPayFacDebit="0"payoutOrgDebitAmount="0"numPayoutOrgDebit="0"reserveDebitAmount="0"numReserveDebit="0"vendorDebitAmount="0"numVendorDebit="0"customerDebitAmount="0"numCustomerDebit="0"physicalCheckDebitAmount="0"numPhysicalCheckDebit="0"numFundingInstructionVoid="0"numFastAccessFunding="0"fastAccessFundingAmount="0">
<sale reportGroup="Planets" id="1211"><orderId>2111</orderId><amount>123</amount><orderSource>ecommerce</orderSource>
<card><type>VI</type><number>4100000000000000</number><expDate>1213</expDate><cardValidationNum>1213</cardValidationNum></card></sale>
</batchRequest>
Expand Down

0 comments on commit 99e4987

Please sign in to comment.