fix: zarinpal log
This commit is contained in:
@@ -15,7 +15,7 @@ class SepGateway {
|
||||
private logger = new Logger(SepGateway.name);
|
||||
|
||||
private gatewayApiUrl: string = process.env.SEP_HOST || "https://sep.shaparak.ir";
|
||||
private callBackURL = `https://www.fajrtabloshop.com/verify/saman/`;
|
||||
private callBackURL = `https://fajrtabloshop.com/verify/saman/`;
|
||||
private TERMINAL_ID: string = process.env.SEP_TERMINAL_ID || "15364098";
|
||||
private requestHeader = { "Content-Type": "application/json", Accept: "application/json" };
|
||||
|
||||
|
||||
@@ -25,6 +25,8 @@ class ZarinPalGateway {
|
||||
metadata: { email, mobile },
|
||||
};
|
||||
|
||||
console.log('purchaseData',purchaseData);
|
||||
|
||||
const response = await axios.post(`${this.gatewayApiUrl}/v4/payment/request.json`, purchaseData, { headers: this.requestHeader });
|
||||
const { data } = response.data as ZarinPalPGNewRequestData;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user