Class MoneyTransferService
java.lang.Object
sk.iway.iwcm.components.basket.payment_methods.rest.BasePaymentMethod
sk.iway.iwcm.components.basket.payment_methods.rest.MoneyTransferService
-
Field Summary
Fields inherited from class sk.iway.iwcm.components.basket.payment_methods.rest.BasePaymentMethod
BANK_URL_TEXT, CANT_REFUND_NOT_CONFIRMED, CANT_REFUND_REFUNDATION, CONST_SYMBOL_TEXT, ENABLE_CARD_PAY_TEXT, ENABLE_TATRA_PAY_TEXT, HASH_PRIVATE_KEY_TEXT, MERCHANT_ID_TEXT, NON_REFUNDABLE_METHOD, NON_REFUNDABLE_PAYMENT, NOTIF_EMAIL_TEXT, PAYMENT_METHOD_REPOSITORY, PRIVATE_KEY_TEXT, REFUNDATION_AMOUNT_TOO_HIGH, REFUNDATION_AMOUNT_TOO_LOW, REFUNDATION_FAILED, REFUNDATION_SUCCESS, REFUNDATION_TITLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected RefundationState
doPaymentRefund
(BigDecimal refundAmount, BasketInvoicePaymentEntity paymentEntity, javax.servlet.http.HttpServletRequest request) Do refundation of payment.protected BasketInvoiceItemEntity
getPaymentMethodCost
(BasketInvoiceItemEntity entity, PaymentMethodEntity paymentMethod) Get payment method cost.protected String
getPaymentResponse
(Long invoiceId, String returnUrl, javax.servlet.http.HttpServletRequest request) Prepare payment method and return some response to user LIKE payment instructions OR button to redirect to payment gateway.protected PaymentState
getPaymentState
(javax.servlet.http.HttpServletRequest request) Get payemnt state after payment is done.protected boolean
isEditableByAdmin
(PaymentMethodEntity paymentMethod) Methods inherited from class sk.iway.iwcm.components.basket.payment_methods.rest.BasePaymentMethod
adminLogError, adminLogError, adminLogErrorLong, adminLogErrorLong, adminLogErrorState, adminLogErrorState, beforeSave, clearPaymentMethodConfiguration, encryptKey, getPayment, isPaymentMethodConfigured, removeInvoicePayment, saveBasketInvoicePayment, savePaymentMethod, setToMapIfConfigured, validateEditorValues
-
Constructor Details
-
MoneyTransferService
public MoneyTransferService()
-
-
Method Details
-
doPaymentRefund
protected RefundationState doPaymentRefund(BigDecimal refundAmount, BasketInvoicePaymentEntity paymentEntity, javax.servlet.http.HttpServletRequest request) Description copied from class:BasePaymentMethod
Do refundation of payment. This payment can be partial or full. Returned RefundationState will contain status of refundation with some message if needed.- Specified by:
doPaymentRefund
in classBasePaymentMethod
- Returns:
-
getPaymentResponse
protected String getPaymentResponse(Long invoiceId, String returnUrl, javax.servlet.http.HttpServletRequest request) Description copied from class:BasePaymentMethod
Prepare payment method and return some response to user LIKE payment instructions OR button to redirect to payment gateway.- Specified by:
getPaymentResponse
in classBasePaymentMethod
- Returns:
-
getPaymentMethodCost
protected BasketInvoiceItemEntity getPaymentMethodCost(BasketInvoiceItemEntity entity, PaymentMethodEntity paymentMethod) Description copied from class:BasePaymentMethod
Get payment method cost. This method will set item price, quantity and VAT.- Specified by:
getPaymentMethodCost
in classBasePaymentMethod
- Returns:
-
getPaymentState
Description copied from class:BasePaymentMethod
Get payemnt state after payment is done. Called right after user payed for order.- Specified by:
getPaymentState
in classBasePaymentMethod
- Returns:
-
isEditableByAdmin
- Specified by:
isEditableByAdmin
in classBasePaymentMethod
-