Reply
Highlighted
Member
Posts: 1
Registered: ‎06-29-2020

Angular error message for Accept Js. Accept not defined

 

 

 

app.component.ts
constructor(private _acceptJSSrv: AcceptJSService) { } async onSubmit(cc: CreditCard): Promise<any> { try { const nonce = await this._acceptJSSrv.generatePaymentNonce(cc); // submit nonce to your server with payment amount } catch (ex) { console.error(ex); } } ngOnInit() { }
app.module.ts
const AcceptJSConfig: Config = { acceptjsUrl: 'http://secure.authorize.net/gateway/transact.dll' , apiLoginID: '2FzGeZz9jE68' , clientKey: '29sy76E5p5Ru574C6ZuS7Kk5WzwUaHhKfuGGpG8AArmtvnS29Rg4h8AeBZrNq3EF' };


CreditCard.ts

public amount: number, public cardCode: string, public cardNumber: string,
public month: string, public year,
 
 

My error in my console returns Accept not defined. What does this mean and how can i fix it?