Versions in this module Expand all Collapse all v1 v1.0.0 Nov 14, 2024 Changes in this version + const OrderStatusCanceled + const OrderStatusCompleted + const OrderStatusExpired + const OrderStatusPaid + const OrderStatusPending + var TokipayDeeplink = utils.API + var TokipayPaymentCancel = utils.API + var TokipayPaymentQr = utils.API + var TokipayPaymentScanUser = utils.API + var TokipayPaymentSentUser = utils.API + var TokipayPaymentStatus = utils.API + var TokipayPhoneRequest = utils.API + var TokipayRefund = utils.API + var TokipayTransactionStatus = utils.API + type Tokipay interface + PaymentCancel func(requestId string) (TokipayPaymentStatusResponse, error) + PaymentQr func(input TokipayPaymentInput) (TokipayPaymentResponse, error) + PaymentScanUser func(input TokipayPaymentInput) (TokipayPaymentResponse, error) + PaymentSentUser func(input TokipayPaymentInput) (TokipayPaymentResponse, error) + PaymentStatus func(requestId string) (TokipayPaymentStatusResponse, error) + PaymentThirdPartyDeeplink func(input TokipayPaymentInput) (TokipayDeeplinkResponse, error) + PaymentThirdPartyPhoneRequest func(input TokipayPaymentInput) (TokipayThirdPartyPhoneResponse, error) + PaymentThirdPartyStatus func(requestId string) (TokipayPaymentStatusResponse, error) + func New(...) Tokipay + type TokipayDeeplinkDataResponse struct + Deeplink string + type TokipayDeeplinkRequest struct + Amount int64 + AppSchemaIos string + Authorization string + FailureUrl string + MerchantId string + Notes string + OrderId string + SuccessUrl string + TokiWebFailureUrl string + TokiWebSuccessUrl string + type TokipayDeeplinkResponse struct + Data TokipayDeeplinkDataResponse + Error string + Message string + StatusCode int + Type string + type TokipayPaymentInput struct + Amount int64 + CountryCode string + Notes string + OrderId string + PhoneNo string + RequestId string + SuccessUrl string + type TokipayPaymentQrRequest struct + Amount int64 + Authorization string + FailureUrl string + MerchantId string + Notes string + OrderId string + SuccessUrl string + type TokipayPaymentRequestResponse struct + RequestId string + type TokipayPaymentResponse struct + Data TokipayPaymentRequestResponse + Error string + Message string + StatusCode int + Type string + type TokipayPaymentResponseExt struct + Error string + Message string + ResponseType string + StatusCode int + type TokipayPaymentScanUserRequest struct + Amount int64 + Authorization string + FailureUrl string + MerchantId string + Notes string + OrderId string + RequestId string + SuccessUrl string + type TokipayPaymentSentUserRequest struct + Amount int64 + Authorization string + CountryCode string + FailureUrl string + MerchantId string + Notes string + OrderId string + PhoneNo string + SuccessUrl string + type TokipayPaymentStatusDataResponse struct + Status string + type TokipayPaymentStatusResponse struct + Data TokipayPaymentStatusDataResponse + Error string + Message string + StatusCode int + Type string + type TokipayRefundInput struct + RefundAmount int64 + RequestId string + type TokipayRefundRequest struct + MerchantId string + RefundAmount int64 + RequestId string + type TokipayThirdPartyPhoneRequest struct + Amount int64 + Authorization string + CountryCode string + FailureUrl string + MerchantId string + Notes string + OrderId string + PhoneNo string + SuccessUrl string + TokiWebFailureUrl string + TokiWebSuccessUrl string + type TokipayThirdPartyPhoneResponse struct + Data interface{} + Error string + Message string + StatusCode int + Type string