ERROR WITH IONIC INTEGRATION

dhren
Nuevo miembro de la comunidad

Hola, estoy tratando de integrar el pago con PayPal en mi aplicación iónica. Entonces tengo este codigo

Export class PaypalpagoPage implements OnInit {
totalfare: number;

 

 

paymentAmount = 'totalFare';
currency: string = 'EUR';


ngOnInit () {

This TotalFare = Mathematics. round (this. serviceProvider. tripDistance * this. serviceProvider. farePerKm + this. serviceProvider. rateBase);

}
Pay with PayPal () {
this paypal. in that ({
PayPalEnvironmentProduction: '',
PayPalEnvironmentSandbox: 'ASdoJu_T3ORqC2AI-Hx2UYTa8afcSOmyVZMr_KDdaXvufeX6-S7CuTjgyhEYy1_uaSSsjkgtD4qbQS3o'
}). then (() => {
this paypal. prepareToRender ('PayPalEnvironmentSandbox', new configuration of PayPal ({
acceptCreditCards: true,
})). then (() => {
leave payment = new PayPalPayment (this.paymentAmount, 'EUR', 'Description', 'exit');
this paypal. renderSinglePaymentUI (payment). then (() => {
Totalfare calculates an operation that is the distance * km. This has to give a number that is the price that the user has to pay.
I have put paymentAmount = 'totalfare'. The problem is that I do not open PayPal when I click on the button

Login to Me Too
0 RESPUESTAS 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.