Skip to content

Commit

Permalink
Add more params in apple pay function
Browse files Browse the repository at this point in the history
  • Loading branch information
WangGuan committed Dec 5, 2023
1 parent 17edd22 commit 9068deb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gateways/paygent/paygent.go
Original file line number Diff line number Diff line change
Expand Up @@ -589,10 +589,11 @@ func (paygent *Paygent) PayPayCancelAndRefundMessage(transactionID string, amoun
return response, err
}

func (paygent *Paygent) ApplePayAuth(amount int, applePayToken string) (gomerchant.AuthorizeResponse, error) {
func (paygent *Paygent) ApplePayAuth(amount int, applePayToken string, params gomerchant.AuthorizeParams) (gomerchant.AuthorizeResponse, error) {
var (
response gomerchant.AuthorizeResponse
requestParams = gomerchant.Params{
"trading_id": params.OrderID,
"payment_amount": amount,
//Fixed value, 10 means one time payment
"payment_class": 10,
Expand Down

0 comments on commit 9068deb

Please sign in to comment.