Skip to content

Comments

feat(RNPSW): add resume transaction functionality and validation updates#240

Open
benkwash wants to merge 1 commit intojust1and0:mainfrom
benkwash:feat-resume-transaction
Open

feat(RNPSW): add resume transaction functionality and validation updates#240
benkwash wants to merge 1 commit intojust1and0:mainfrom
benkwash:feat-resume-transaction

Conversation

@benkwash
Copy link

Resume Transaction Feature

Description

This pull request adds the resumeTransaction functionality to the package. The resume transaction feature allows developers to initiate transactions on their server and seamlessly complete them within the React Native app using an access code from Paystack.

Key additions include:

  • Code example demonstrating how to use resumeTransaction()
  • Documentation explaining the resume transaction flow and its benefits
  • API reference documentation for the popup.resumeTransaction() method
  • Updated features list to highlight the new capability

API Reference Added

popup.resumeTransaction() Documentation

A new method documented with the following parameters:

  • accessCode (required): Access code from Paystack for resuming a transaction
  • onSuccess (required): Callback on successful payment
  • onCancel (required): Callback on cancellation
  • onLoad (optional): Callback when transaction view loads
  • onError (optional): Callback on WebView or script error

Code Example Added

Complete React Native component example showing:

popup.resumeTransaction({
  accessCode: 'ACCESS_CODE_FROM_PAYSTACK',
  onSuccess: (res) => console.log('Payment resumed successfully:', res),
  onCancel: () => console.log('User cancelled'),
  onLoad: (res) => console.log('WebView Loaded:', res),
  onError: (err) => console.log('WebView Error:', err)
});

Type of Changes

  • ✨ New Feature
  • 📝 Documentation

Testing

  • README updated with complete documentation
  • Code examples are syntactically correct
  • API reference is consistent with implementation
  • All callbacks documented and explained

@benkwash
Copy link
Author

@just1and0

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