export interface IPhoneNumberPaymentDetails {
cc: string;
phoneNumber: string;
}
export interface IUserPaymentDetails {
email: string;
phoneNumber: IPhoneNumberPaymentDetailsstring;
}
export interface ICreatePreAuthPaycometRequest {
userPaymentDetails: IUserPaymentDetails
}
public async createPreAuthorizationPaycomet({
....
}) {
....
const paycometPreauth = await this.paymentsClient.paycometClient.request<ICreatePreAuthorizationResponse>(
(apis) =>
apis.paymentsApi.createPreAuthorization({
iCreatePreAuthorizationRequest: {
...,
billingAddress,
user: {
email,
phonenumber,
}
},
region: regionCountry,
}),
);
...
} |