1
2const objRequest = {
3 operacion: 'getValuesById',
4 data: { id: this.id }
5};
6
7const response = this.paymentService.myHttp( objRequest );
8
9response.pipe(first()).subscribe(
10 objResponse => {
11 this.checkoutForm.get( 'name' ).setValue( objResponse.collection[0].nombre );
12 this.checkoutForm.get( 'email' ).setValue( objResponse.collection[0].email );
13 this.checkoutForm.get( 'numAcount' ).setValue( objResponse.collection[0].numAcount );
14 this.checkoutForm.get( 'bank' ).setValue( objResponse.collection[0].bank_id );
15 },
16 error => {
17 console.log(error);
18 }
19);