Skip to content

Commit e9e9312

Browse files
committed
add: call back function type for idpay
1 parent d6c09ca commit e9e9312

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

providers/idpay/idpay.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ const (
1919
TRANSACTIONS_ENDPOINT = "/v1.1/payment/transactions"
2020
)
2121

22+
type (
23+
CallBackPostFunc func(ctx context.Context, status int, trackId int, id string, orderId string, amount int, cardNo string, hashedCardNo string, date uint) error
24+
CallBackGetFunc func(ctx context.Context, status int, trackId int, id string, orderId string) error
25+
)
26+
2227
// New create idpay object for create new request
2328
func New(client client.Transporter, apiKey string, sandbox bool) (*IdPay, error) {
2429
if client == nil {

0 commit comments

Comments
 (0)