How yangeni/gopay_plus_automatic works
This repository automates ChatGPT Plus subscription through GoPay. A client submits a session token to the HTTP orchestrator, which starts a payment flow over gRPC, obtains an OTP through the configured mode, completes payment, and returns the subscription result. The payment service owns pending-flow state and delegates payment work to the GoPay implementation. README documents Stripe/Midtrans/GoPay payment stages and manual, SMS API, and WhatsApp OTP options; sampled code confirms the service calls. Some detailed payment and OTP-mode wiring is documented but not fully excerpted.
Main entry points: orchestrator.py HTTP orchestrator · gopay.py GoPay payment flow · payment_server.py Payment gRPC service · index.js WhatsApp OTP relay
Components 15
Subscription API
- HTTP orchestrator
orchestrator.py - Subscription result
Payment processing
- Payment gRPC service
plus_gopay_links/payment_server.py - Pending flow store
plus_gopay_links/payment_server.py - GoPay payment flow
plus_gopay_links/gopay.py
OTP delivery
- OTP intake
orchestrator.py - SMS API
- Manual or ADB OTP
otp_forwarder.py - WhatsApp OTP relay
to_whatsapp/index.js - Relay process manager
to_whatsapp/wa_relay.py
External integrations
- ChatGPT
- Stripe
- Midtrans
- GoPay
Other components
- API client
Connections 15
- API client → HTTP orchestrator: submits request
README.md - HTTP orchestrator → Payment gRPC service: starts payment
orchestrator.py - Payment gRPC service → Pending flow store: stores flow
plus_gopay_links/payment_server.py - Payment gRPC service → GoPay payment flow: delegates payment
plus_gopay_links/payment_server.py - HTTP orchestrator → OTP intake: accepts OTP
orchestrator.py - Manual or ADB OTP → OTP intake: pushes OTP
otp_forwarder.py - SMS API → OTP intake: provides code
README.md - HTTP orchestrator → WhatsApp OTP relay: requests OTP
README.md - Relay process manager → WhatsApp OTP relay: starts sidecar
to_whatsapp/wa_relay.py - GoPay payment flow → ChatGPT: creates checkout
README.md - GoPay payment flow → Stripe: creates payment method
plus_gopay_links/gopay.py - GoPay payment flow → Midtrans: requests payment setup
README.md - GoPay payment flow → GoPay: links and charges
plus_gopay_links/gopay.py - HTTP orchestrator → Payment gRPC service: completes payment
README.md - HTTP orchestrator → Subscription result: returns outcome
README.md