Class GoPayService
java.lang.Object
sk.iway.iwcm.components.basket.payment_methods.rest.BasePaymentMethod
sk.iway.iwcm.components.basket.payment_methods.rest.GoPayService
-
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.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 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
-
GoPayService
public GoPayService()
-
-
Method Details
-
getPaymentResponse
public 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:
-
getPaymentState
Description copied from class:BasePaymentMethodGet payemnt state after payment is done. Called right after user payed for order.- Specified by:
getPaymentStatein classBasePaymentMethod- Returns:
-
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:
-
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:
-
isEditableByAdmin
- Specified by:
isEditableByAdminin classBasePaymentMethod
-