Skip to content

Commit

Permalink
Merge pull request #186 from pt-kompas-media-nusantara/feature/108635…
Browse files Browse the repository at this point in the history
…-adjustment-swg

adjust flow swg
  • Loading branch information
prasetiyo28 authored Aug 27, 2024
2 parents 10a88b3 + 56a2d44 commit f436772
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kompasid/web-components",
"version": "v1.8.8",
"version": "v1.8.9",
"description": "Kompas.id reusable web components",
"main": "dist/index.cjs.js",
"module": "dist/custom-elements/index.js",
Expand Down
5 changes: 3 additions & 2 deletions src/components/kompas-paywall-body/kompas-paywall-body.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export class KompasPaywallBody {
@State() kompasApigenHost: string = 'https://apigen.kompas.id'
@State() kompasApiWcmHost: string = 'https://apiwcm.kompas.id'
@State() kompasLoginHost: string = 'https://account.kompas.id/login'
@State() kompasApiSubs: string = 'https://api.kompas.id/subscription/api/v1'
@State() selfHost: string = 'https://epaper.kompas.id'
@State() swgPublisherName: string = 'Harian Kompas'
@State() swgPublisherId: string = 'kompas.id'
Expand Down Expand Up @@ -309,9 +310,9 @@ export class KompasPaywallBody {
})
}
private createSwG = async (payload: any, token: string) => {
await fetch(`${this.kompasApiWcmHost}/v2/membership/swg/create`, {
await fetch(`${this.kompasApiSubs}/survey/subscription/membership/swg`, {
method: 'POST',
body: JSON.stringify(payload),
body: payload,
headers: {
'content-type': 'application/json',
'Authorization': `Bearer ${token}`,
Expand Down

0 comments on commit f436772

Please sign in to comment.