Download the PHP package saba-ab/rapyd without Composer
On this page you can find all versions of the php package saba-ab/rapyd. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download saba-ab/rapyd
More information about saba-ab/rapyd
Files in saba-ab/rapyd
Package rapyd
Short Description Full-featured Laravel SDK for the Rapyd fintech API
License AGPL-3.0-only
Homepage https://github.com/saba-ab/rapyd
Informations about the package rapyd
Rapyd Laravel SDK
A full-featured Laravel package for the Rapyd fintech API covering payments, payouts, wallets, card issuing, verification, and fraud protection.
Features
- HMAC-SHA256 request signing handled automatically
- Typed DTOs for all API response objects with enum status fields
- Resource classes covering all 6 Rapyd domains (100+ endpoints)
- Webhook signature verification with Laravel event dispatch (50+ event types)
- Auto-pagination via LazyCollection for memory-efficient iteration
- 24 PHP 8.2+ backed enums for all status and type fields
- Artisan commands for testing connectivity and exploring payment methods
- Built on spatie/laravel-package-tools for clean Laravel integration
Requirements
- PHP 8.2+
- Laravel 11.x, 12.x, or 13.x
- Rapyd API keys (get them at dashboard.rapyd.net)
Installation
Install the package via Composer:
Publish the configuration file:
Add your API keys to .env:
Quick Start
Create a payment
List customers with auto-pagination
Retrieve a payment
Available Resources
Collect (Payments)
| Accessor | Description |
|---|---|
Rapyd::payments() |
Create, retrieve, update, cancel, capture payments |
Rapyd::refunds() |
Create, retrieve, update refunds |
Rapyd::customers() |
Manage customers and payment methods |
Rapyd::checkout() |
Create and retrieve checkout pages |
Rapyd::paymentMethods() |
List payment methods by country, get required fields |
Rapyd::paymentLinks() |
Create and manage payment links |
Rapyd::subscriptions() |
Manage subscriptions |
Rapyd::plans() |
Manage subscription plans |
Rapyd::products() |
Manage products |
Rapyd::invoices() |
Create, manage, finalize, and pay invoices |
Rapyd::disputes() |
Retrieve and list disputes |
Rapyd::escrows() |
Release escrow funds |
Disburse (Payouts)
| Accessor | Description |
|---|---|
Rapyd::payouts() |
Create, confirm, cancel payouts |
Rapyd::payoutMethods() |
List payout method types and required fields |
Rapyd::beneficiaries() |
Manage payout beneficiaries |
Rapyd::senders() |
Manage payout senders |
Wallet
| Accessor | Description |
|---|---|
Rapyd::wallets() |
Create and manage e-wallets |
Rapyd::walletContacts() |
Manage wallet contacts |
Rapyd::walletTransfers() |
Transfer between wallets |
Rapyd::walletTransactions() |
View wallet transactions |
Rapyd::virtualAccounts() |
Issue and manage virtual accounts |
Issuing (Cards)
| Accessor | Description |
|---|---|
Rapyd::cards() |
Issue, activate, manage cards |
Rapyd::cardPrograms() |
Manage card programs |
Verify (KYC/KYB)
| Accessor | Description |
|---|---|
Rapyd::identities() |
Create and check identity verifications |
Rapyd::verification() |
Create hosted verification pages |
Protect & Data
| Accessor | Description |
|---|---|
Rapyd::fraud() |
Get and update fraud settings |
Rapyd::data() |
List countries, currencies, FX rates |
Webhooks
The package auto-registers a POST route at /rapyd/webhook (configurable) with automatic signature verification.
Configure in Rapyd Dashboard
Set your webhook URL in the Rapyd Client Portal to:
Listen for events
Catch-all listener
Available event types
Events are dispatched for all 65 Rapyd webhook types, grouped by domain:
- Payment: PaymentCompleted, PaymentSucceeded, PaymentFailed, PaymentExpired, PaymentUpdated, PaymentCaptured, PaymentCanceled
- Refund: RefundCompleted, RefundFailed, RefundRejected, PaymentRefundCompleted, PaymentRefundFailed, PaymentRefundRejected
- Customer: CustomerCreated, CustomerUpdated, CustomerDeleted, CustomerPaymentMethodCreated/Updated/Deleted/Expiring
- Subscription: SubscriptionCreated, SubscriptionUpdated, SubscriptionCompleted, SubscriptionCanceled, SubscriptionPastDue, SubscriptionTrialEnd, SubscriptionRenewed
- Invoice: InvoiceCreated, InvoiceUpdated, InvoicePaymentCreated/Succeeded/Failed
- Payout: PayoutCompleted, PayoutUpdated, PayoutFailed, PayoutExpired, PayoutCanceled, PayoutReturned
- Wallet: WalletTransaction, WalletFundsAdded/Removed, WalletTransferCompleted/Failed/ResponseReceived
- Card Issuing: CardIssuingAuthApproved/Declined, CardIssuingSale, CardIssuingCredit, and more
- Verify: VerifyApplicationSubmitted/Approved/Rejected
- Virtual Account: VirtualAccountCreated/Updated/Closed/Transaction
Artisan Commands
Configuration
After publishing, the configuration file is at config/rapyd.php:
DTOs and Enums
All API responses are returned as typed DTOs with readonly properties:
Use enums for type-safe comparisons:
Available enums: PaymentStatus, PaymentMethodCategory, PaymentFlowType, NextAction, RefundStatus, DisputeStatus, PayoutStatus, PayoutMethodCategory, SubscriptionStatus, InvoiceStatus, WebhookStatus, CardStatus, CardBlockReasonCode, EntityType, FeeCalcType, FixedSide, WalletContactType, CouponDuration, PlanInterval, CheckoutPageStatus, EscrowStatus, IssuingTxnType, Environment, WebhookEventType.
Pagination
Error Handling
Testing
Use Http::fake() to mock Rapyd API responses in your tests:
Run the package test suite:
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- saba-ab
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of rapyd with dependencies
illuminate/contracts Version ^11.0||^12.0||^13.0
illuminate/http Version ^11.0||^12.0||^13.0
nesbot/carbon Version ^3.11
spatie/laravel-package-tools Version ^1.16