Skip to content

Commit

Permalink
Merge pull request #1238 from EmpowerPlastic/nologin-endpoint
Browse files Browse the repository at this point in the history
Separate endpoint for nologin purchase
  • Loading branch information
ba1ciu authored Apr 15, 2024
2 parents 644bc55 + 7b31d7d commit fd8710f
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions frontend/marketplace/src/components/BuyCredits.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@
import BuyButton from "@/components/BuyButton.vue";
import Tooltip from "@/components/ui/Tooltip.vue";
import {
CHAIN_ID,
MARKETPLACE_CONTRACT,
PC_BACKEND_ENDPOINT,
PC_BACKEND_ENDPOINT_API,
RPC_ENDPOINT,
CHAIN_ID,
MARKETPLACE_CONTRACT,
PC_BACKEND_ENDPOINT,
PC_BACKEND_ENDPOINT_API,
RPC_ENDPOINT,
} from "@/config/config";
import { useAuth } from "@/stores/auth";
import { useWallet } from "@/stores/wallet";
import { authHeader, useFetcher } from "@/utils/fetcher";
import { log } from "@/utils/logger";
import { useNotifyer } from "@/utils/notifyer";
import {
formatDenom,
getWallet,
resolveSdkError,
walletConnected,
formatDenom,
getWallet,
resolveSdkError,
walletConnected,
} from "@/utils/wallet-utils";
import { SigningCosmWasmClient } from "@cosmjs/cosmwasm-stargate";
import { GasPrice } from "@cosmjs/stargate";
Expand Down Expand Up @@ -206,7 +206,7 @@ const handleCardPayment = async (retirererName: string) => {
const accessToken = await getAccessToken(PC_BACKEND_ENDPOINT);
const response = await post(
`${PC_BACKEND_ENDPOINT_API}/payments/create-checkout-session`,
`${PC_BACKEND_ENDPOINT_API}/payments/create-checkout-session-auth`,
body,
{
headers: authHeader(accessToken),
Expand Down Expand Up @@ -243,7 +243,7 @@ const handleUnauthorizedUserPayment = async (
};
try {
const response = await post(
`${PC_BACKEND_ENDPOINT_API}/payments/create-checkout-session`,
`${PC_BACKEND_ENDPOINT_API}/payments/create-checkout-session-noauth`,
body,
);
const paymentGatewayLink = await response.text();
Expand Down

0 comments on commit fd8710f

Please sign in to comment.