-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Typos * Nice * Pulse * Star * Spaces
- Loading branch information
Showing
9 changed files
with
155 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
namespace Packaged\Rwd\Finance\Chargeback\Reasons; | ||
|
||
use Packaged\Rwd\Finance\Chargeback\ChargebackCategory; | ||
use Packaged\Rwd\Finance\Chargeback\ChargebackReason; | ||
|
||
class NyceChargebackReason extends ChargebackReason | ||
{ | ||
const RSN_CC = 'CC'; | ||
const RSN_UF = 'UF'; | ||
|
||
public static function create($code, $description = '', $category = ChargebackCategory::OTHER) | ||
{ | ||
$reason = parent::create($code, $description, $category); | ||
switch($code) | ||
{ | ||
case self::RSN_CC: | ||
$reason->description = 'Chip Counterfeit'; | ||
$reason->category = ChargebackCategory::FRAUD; | ||
break; | ||
case self::RSN_UF: | ||
$reason->description = 'Unauthorized Fraud'; | ||
$reason->category = ChargebackCategory::FRAUD; | ||
break; | ||
} | ||
return $reason; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?php | ||
|
||
namespace Packaged\Rwd\Finance\Chargeback\Reasons; | ||
|
||
use Packaged\Rwd\Finance\Chargeback\ChargebackCategory; | ||
use Packaged\Rwd\Finance\Chargeback\ChargebackReason; | ||
|
||
class PulseChargebackReason extends ChargebackReason | ||
{ | ||
const RSN_4537 = '4537'; | ||
const RSN_4752 = '4752'; | ||
const RSN_4866 = '4866'; | ||
const RSN_4867 = '4867'; | ||
const RSN_4868 = '4868'; | ||
|
||
public static function create($code, $description = '', $category = ChargebackCategory::OTHER) | ||
{ | ||
$reason = parent::create($code, $description, $category); | ||
switch($code) | ||
{ | ||
case self::RSN_4537: | ||
$reason->description = 'Card Present Transaction'; | ||
$reason->category = ChargebackCategory::FRAUD; | ||
break; | ||
case self::RSN_4752: | ||
$reason->description = 'Transaction Not Recognized'; | ||
$reason->category = ChargebackCategory::OTHER; | ||
break; | ||
case self::RSN_4866: | ||
$reason->description = 'Chip Card Counterfeit transaction'; | ||
$reason->category = ChargebackCategory::FRAUD; | ||
break; | ||
case self::RSN_4867: | ||
$reason->description = 'Lost/Stolen Chip Card Transaction'; | ||
$reason->category = ChargebackCategory::FRAUD; | ||
break; | ||
case self::RSN_4868: | ||
$reason->description = 'Card Not Present Transaction'; | ||
$reason->category = ChargebackCategory::FRAUD; | ||
break; | ||
} | ||
return $reason; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?php | ||
|
||
namespace Packaged\Rwd\Finance\Chargeback\Reasons; | ||
|
||
use Packaged\Rwd\Finance\Chargeback\ChargebackCategory; | ||
use Packaged\Rwd\Finance\Chargeback\ChargebackReason; | ||
|
||
class StarChargebackReason extends ChargebackReason | ||
{ | ||
const RSN_20 = '20'; | ||
const RSN_30 = '30'; | ||
const RSN_40 = '40'; | ||
const RSN_50 = '50'; | ||
const RSN_60 = '60'; | ||
const RSN_65 = '65'; | ||
|
||
public static function create($code, $description = '', $category = ChargebackCategory::OTHER) | ||
{ | ||
$reason = parent::create($code, $description, $category); | ||
switch($code) | ||
{ | ||
case self::RSN_20: | ||
$reason->description = 'Authorization'; | ||
$reason->category = ChargebackCategory::AUTHORIZATION; | ||
break; | ||
case self::RSN_30: | ||
$reason->description = 'Processing Error'; | ||
$reason->category = ChargebackCategory::PROCESSING; | ||
break; | ||
case self::RSN_40: | ||
$reason->description = 'Cardholder Dispute'; | ||
$reason->category = ChargebackCategory::CONSUMER; | ||
break; | ||
case self::RSN_50: | ||
$reason->description = 'Cancellations and Returns'; | ||
$reason->category = ChargebackCategory::CONSUMER; | ||
break; | ||
case self::RSN_60: | ||
$reason->description = 'Unauthorized/Fraud Dispute'; | ||
$reason->category = ChargebackCategory::AUTHORIZATION; | ||
break; | ||
case self::RSN_65: | ||
$reason->description = 'Counterfeit Chip Card Fraud'; | ||
$reason->category = ChargebackCategory::FRAUD; | ||
break; | ||
} | ||
return $reason; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters