# fiuupayment/integration-fiuu_javascript_seamless_integration architecture

> Architecture diagram of the GitHub repository fiuupayment/integration-fiuu_javascript_seamless_integration, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/fiuupayment/integration-fiuu_javascript_seamless_integration
- Repository: https://github.com/fiuupayment/integration-fiuu_javascript_seamless_integration

## Overview

This repository documents Fiuu JavaScript Seamless Integration and includes a Facebook-login example. The example retrieves Facebook profile details, places them on a payment button, and relies on Fiuu’s externally hosted seamless script for checkout; the README describes the intended bank-login popup and merchant-customized checkout. It also documents non-PCI, auto-updating, and RMS Indonesia variants, but their implementations are not in this tree. The example HTML references a JavaScript filename that differs from the file present, so their linkage is uncertain; the graph shows only relationships evidenced by the excerpts or README.

Main entry points: [`FB App Seamless (example)/molpay_facebook_seamless(example).js`](https://github.com/fiuupayment/integration-fiuu_javascript_seamless_integration/blob/master/FB%20App%20Seamless%20(example)/molpay_facebook_seamless(example).js) (Facebook flow), [`FB App Seamless (example)/index(example).php`](https://github.com/fiuupayment/integration-fiuu_javascript_seamless_integration/blob/master/FB%20App%20Seamless%20(example)/index(example).php) (Example page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_example["Facebook example"]
  node_example_page["Example page<br/>[index&#40;example&#41;.php]"]
  node_facebook_flow["Facebook flow"]
  node_payment_button["Payment button"]
end

subgraph group_checkout["Seamless checkout"]
  node_fiuu_script["Fiuu seamless script"]
  node_bank_login["Bank login"]
  node_channel_sprite["Channel logo styles"]
end

subgraph group_documented["Documented variants"]
  node_nonpci["Non-PCI integration"]
  node_auto_update["Auto-update version"]
  node_rms_id["RMS Indonesia"]
end

node_buyer(("Buyer"))
node_facebook["Facebook SDK"]

node_example_page -->|"loads script"| node_fiuu_script
node_buyer -.->|"opens checkout"| node_example_page
node_facebook_flow -->|"loads SDK"| node_facebook
node_facebook_flow -->|"requests profile"| node_facebook
node_facebook_flow -->|"creates and fills"| node_payment_button
node_payment_button -.->|"starts seamless checkout"| node_fiuu_script
node_fiuu_script -.->|"opens popup"| node_bank_login
node_nonpci -->|"includes latest version"| node_auto_update
node_nonpci -->|"documents regional variant"| node_rms_id

click node_example_page "https://github.com/fiuupayment/integration-fiuu_javascript_seamless_integration/blob/master/FB%20App%20Seamless%20(example)/index(example).php"
click node_facebook_flow "https://github.com/fiuupayment/integration-fiuu_javascript_seamless_integration/blob/master/FB%20App%20Seamless%20(example)/molpay_facebook_seamless(example).js"
click node_payment_button "https://github.com/fiuupayment/integration-fiuu_javascript_seamless_integration/blob/master/FB%20App%20Seamless%20(example)/molpay_facebook_seamless(example).js"
click node_channel_sprite "https://github.com/fiuupayment/integration-fiuu_javascript_seamless_integration/blob/master/Channel%20Logo/payment-channel-sprite.css"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_example_page,node_facebook_flow,node_payment_button toneBlue
class node_fiuu_script,node_bank_login,node_channel_sprite toneAmber
class node_nonpci,node_auto_update,node_rms_id toneMint
class node_buyer,node_facebook toneIndigo
```

## Components

### Facebook example

- [Example page](https://github.com/fiuupayment/integration-fiuu_javascript_seamless_integration/blob/master/FB%20App%20Seamless%20(example)/index(example).php): `FB App Seamless (example)/index(example).php`
- [Facebook flow](https://github.com/fiuupayment/integration-fiuu_javascript_seamless_integration/blob/master/FB%20App%20Seamless%20(example)/molpay_facebook_seamless(example).js): `FB App Seamless (example)/molpay_facebook_seamless(example).js`
- [Payment button](https://github.com/fiuupayment/integration-fiuu_javascript_seamless_integration/blob/master/FB%20App%20Seamless%20(example)/molpay_facebook_seamless(example).js): `FB App Seamless (example)/molpay_facebook_seamless(example).js`

### Seamless checkout

- **Fiuu seamless script**
- **Bank login**
- [Channel logo styles](https://github.com/fiuupayment/integration-fiuu_javascript_seamless_integration/blob/master/Channel%20Logo/payment-channel-sprite.css): `Channel Logo/payment-channel-sprite.css`

### Documented variants

- **Non-PCI integration**
- **Auto-update version**
- **RMS Indonesia**

### Other components

- **Buyer**
- **Facebook SDK**

## Connections

- Example page → Fiuu seamless script: loads script (evidence: `FB App Seamless (example)/index(example).php`)
- Buyer → Example page: opens checkout
- Facebook flow → Facebook SDK: loads SDK (evidence: `FB App Seamless (example)/molpay_facebook_seamless(example).js`)
- Facebook flow → Facebook SDK: requests profile (evidence: `FB App Seamless (example)/molpay_facebook_seamless(example).js`)
- Facebook flow → Payment button: creates and fills (evidence: `FB App Seamless (example)/molpay_facebook_seamless(example).js`)
- Payment button → Fiuu seamless script: starts seamless checkout (evidence: `README.md`)
- Fiuu seamless script → Bank login: opens popup (evidence: `README.md`)
- Non-PCI integration → Auto-update version: includes latest version (evidence: `README.md`)
- Non-PCI integration → RMS Indonesia: documents regional variant (evidence: `README.md`)
