Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate endpoint for nologin purchase #1238

Merged
merged 1 commit into from
Apr 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading