Skip to content

Instantly share code, notes, and snippets.

@Biciato
Created April 23, 2019 18:54
Show Gist options
  • Save Biciato/99d9cf6636d9a0b38aab3a8616b01496 to your computer and use it in GitHub Desktop.
Save Biciato/99d9cf6636d9a0b38aab3a8616b01496 to your computer and use it in GitHub Desktop.
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
@Injectable({providedIn: 'root'})
export class PagseguroService {
constructor(private http: HttpClient) { }
checkout(product) {
return this.http.post('http://localhost:8000/api/checkout', product);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment