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 RefundationStatedoPaymentRefund(BigDecimal refundAmount, BasketInvoicePaymentEntity paymentEntity, javax.servlet.http.HttpServletRequest request) Do refundation of payment.protected BasketInvoiceItemEntitygetPaymentMethodCost(BasketInvoiceItemEntity entity, PaymentMethodEntity paymentMethod) Get payment method cost.protected StringgetPaymentResponse(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 PaymentStategetPaymentState(javax.servlet.http.HttpServletRequest request) Get payemnt state after payment is done.protected booleanisEditableByAdmin(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:BasePaymentMethodDo refundation of payment. This payment can be partial or full. Returned RefundationState will contain status of refundation with some message if needed.- Specified by:
doPaymentRefundin classBasePaymentMethod- Returns:
-
getPaymentResponse
protected String getPaymentResponse(Long invoiceId, String returnUrl, javax.servlet.http.HttpServletRequest request) Description copied from class:BasePaymentMethodPrepare payment method and return some response to user LIKE payment instructions OR button to redirect to payment gateway.- Specified by:
getPaymentResponsein classBasePaymentMethod- Returns:
-
getPaymentMethodCost
protected BasketInvoiceItemEntity getPaymentMethodCost(BasketInvoiceItemEntity entity, PaymentMethodEntity paymentMethod) Description copied from class:BasePaymentMethodGet payment method cost. This method will set item price, quantity and VAT.- Specified by:
getPaymentMethodCostin classBasePaymentMethod- Returns:
-
getPaymentState
Description copied from class:BasePaymentMethodGet payemnt state after payment is done. Called right after user payed for order.- Specified by:
getPaymentStatein classBasePaymentMethod- Returns:
-
isEditableByAdmin
- Specified by:
isEditableByAdminin classBasePaymentMethod
-