Skip to content

Conversation

@panosinthezone
Copy link
Contributor

@panosinthezone panosinthezone commented Jul 31, 2025

Description

We want to allow popups for google pay to work. It doesn't yet fix: https://linear.app/crossmint/issue/PAY-7296/investigate-fomo-google-pay-error-code-or-bibed-15

Test plan

I updated the code in apps/wallets/smart-wallet/expo/app/index.tsx

export default function Index() {
    return (
        <SafeAreaView style={styles.container}>
            <ScrollView
                // style={styles.scrollView}
                // contentContainerStyle={styles.scrollContent}
                showsVerticalScrollIndicator={false}
            >
                <CrossmintProvider apiKey={apiKey}>
                    <CrossmintEmbeddedCheckout
                        recipient={{
                            walletAddress: "9NP8bWESotg1bTsyD43aHsYqekVEc88ywWXXq9dueyhz",
                        }}
                        payment={{
                            receiptEmail: "[email protected]",
                            crypto: {
                                enabled: false,
                            },
                            fiat: {
                                enabled: true,
                                allowedMethods: {
                                    card: true,
                                    applePay: true,
                                    googlePay: true,
                                },
                            },
                            defaultMethod: "fiat",
                        }}
                        lineItems={{
                            tokenLocator: "solana:6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN",
                            executionParameters: {
                                mode: "exact-in",
                                amount: "1",
                                maxSlippageBps: "500",
                            },
                        }}
                    />
                </CrossmintProvider>
            </ScrollView>
        </SafeAreaView>
    );
}

const styles = StyleSheet.create({
    container: { flex: 1 },
    contentContainer: { padding: 16 },
    section: {
        marginBottom: 20,
        paddingVertical: 10,
        borderBottomWidth: 1,
        borderBottomColor: "#eee",
        gap: 10,
    },
    statusSection: {
        marginBottom: 20,
        padding: 15,
        backgroundColor: "#f0f0f0",
        borderRadius: 5,
        gap: 5,
    },
    input: {
        borderWidth: 1,
        borderColor: "#ccc",
        padding: 10,
        marginBottom: 10,
        borderRadius: 5,
    },
    errorText: {
        color: "red",
        marginTop: 5,
    },
});
image

@panosinthezone panosinthezone requested a review from mPaella July 31, 2025 21:35
@panosinthezone panosinthezone self-assigned this Jul 31, 2025
@changeset-bot
Copy link

changeset-bot bot commented Jul 31, 2025

⚠️ No Changeset found

Latest commit: a2a2305

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented Jul 31, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
smart-wallet-auth-demo ⬜️ Ignored (Inspect) Aug 1, 2025 8:31pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant