Integration Example
This page has a live demo where you can try the purchase flow, and integration code you can copy directly.
Live Demo
Below is a mock product page. Click the purchase button on it to see what your users will actually go through:
📱 Live Demo - Click button to experience purchase flow
The following example shows the complete integration effect of RAKUFUN SDK
🎧 Authentic Japanese Products · International Shipping
RAKUFUN provides safe and reliable Japanese product purchasing services
Sony WH-1000XM5 Wireless Noise Canceling Headphones
🌟 Product Features
- Industry-leading active noise cancellation technology
- 30-hour ultra-long battery life
- Quick Attention mode for instant environmental awareness
- Multipoint connection, connect two devices simultaneously
- Authentic Japanese import with manufacturer warranty
The purchase button in the demo is made by the page itself, using Custom Mode. The code below uses the default mode instead, with the SDK's own bottom panel.
Integration Code
Below is the integration code for the default mode (a purchase panel shown automatically at the bottom of the page). Put it on your product page and replace the product information with real data:
<!DOCTYPE html>
<html lang="en">
<body>
<!-- Your product page content -->
<script src="https://sdk.rakufun.com/rakufun-universal.min.js"></script>
<script>
// Set the current product's information, used when the user clicks the purchase button in the bottom panel
rakufun.setUIProductData({
url: window.location.href,
title: "Sony WH-1000XM5 Wireless Headphones",
price: "54800",
description: "Industry-leading noise cancellation technology, 30-hour battery life.",
images: ["https://images.unsplash.com/photo-1583394838336-acd977736f90?w=800"],
condition: "New",
brand: "Sony",
minQuantity: "1",
maxStock: "50",
shippingInfo: "0",
deliveryTime: "2-4 days",
precautions: "1-year manufacturer warranty included.",
productParameters: "Weight: 250g, Battery Life: 30 hours"
});
</script>
</body>
</html>What you get:
- For non-Japanese IPs, the RAKUFUN purchase panel appears at the bottom of the page (hidden by default for Japanese IPs)
- When the user clicks the purchase button in the panel, the RAKUFUN product page opens in a new tab with the product information set above
What's Next
- Want step-by-step integration instructions: see Getting Started
- Want the purchase entry at a specific spot, or your own button: see UI Modes
- Want to know what each field means: see API Reference - Product Information Fields
Questions? Contact us: service@rakufun.com