-
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #425 from jldelatorre/development
Replace PayPal Express
- Loading branch information
Showing
22 changed files
with
605 additions
and
356 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
using System; | ||
|
||
|
||
namespace Hotcakes.Commerce.Common | ||
{ | ||
public class PayPalConstants | ||
{ | ||
//Payments Status | ||
public const string PAYMENT_STATUS_COMPLETED = "COMPLETED"; | ||
public const string PAYMENT_STATUS_COMPLETED_DESCRIPTION = "PayPal Express Payment Captured Successfully"; | ||
public const string PAYMENT_STATUS_Pending = "PENDING"; | ||
public const string PAYMENT_STATUS_Pending_DESCRIPTION = "PayPal Express Payment PENDING"; | ||
public const string PAYMENT_STATUS_DENIED = "DENIED"; | ||
public const string PAYMENT_STATUS_DENIED_DESCRIPTION = "PayPal Express Payment DENIED"; | ||
public const string PAYMENT_STATUS_ERROR_DESCRIPTION = | ||
"An error occurred while trying to capture your PayPal payment."; | ||
public const string PAYMENT_CHARGE_ERROR = "An error occurred while trying to charge your PayPal payment."; | ||
public const string PAYMENT_ERROR = "Paypal Express Payment Charge Failed."; | ||
|
||
//Payment Authorize | ||
public const string PAYMENT_AUTHORIZE_SUCCESS = "PayPal Express Payment Authorized Successfully."; | ||
public const string PAYMENT_AUTHORIZE_FAILED = "PayPal Express Payment Authorization Failed."; | ||
|
||
|
||
//Payment Refund | ||
public const string PAYMENT_REFUND_SUCCESS = "PayPal Express Payment Refunded Successfully."; | ||
public const string PAYMENT_REFUND_FAILED = "Paypal Express Payment Refund Failed."; | ||
|
||
//Payment Void | ||
public const string PAYMENT_Void_SUCCESS = "PayPal Express Payment Voided Successfully."; | ||
public const string PAYMENT_Void_FAILED = "Paypal Express Payment Void Failed."; | ||
|
||
|
||
//Payment Mode | ||
public const string PAYMENT_MODE_AUTHORIZE = "AUTHORIZE"; | ||
public const string PAYMENT_MODE_CAPTURE = "CAPTURE"; | ||
|
||
//Template URL | ||
public const string LIVE_URL = "https://www.paypal.com/checkoutnow?token={0}"; | ||
public const string SANDBOX_URL = "https://www.sandbox.paypal.com/checkoutnow?token={0}"; | ||
} | ||
} |
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
Oops, something went wrong.