import { Injectable } from '@nestjs/common';
import { Transaction } from './entities/transaction.entity';
@Injectable()
export class GooglePayService {
async createPaymentRequest(transaction: Transaction) {
return {
transactionId: transaction.id,
totalPrice: transaction.totalAmount.toString(),
currencyCode: transaction.currency || 'USD',
merchantName: 'Live Beauty Platform',
};
}
async handleWebhook(payload: any) {
return { received: true };
}
}