Skip to content

Commit

Permalink
Merge pull request #12 from DEVSOG12/scan-card-feature
Browse files Browse the repository at this point in the history
v0.1.3
  • Loading branch information
DEVSOG12 authored Jul 4, 2023
2 parents c897536 + 0b7aafa commit a004fec
Show file tree
Hide file tree
Showing 14 changed files with 247 additions and 218 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,10 @@
Fixed Header Issue from @odunboye PR

## 0.1.2+5
Fixed iOS WebView Issue
Fixed iOS WebView Issue

## 0.1.2+6
v0.1.2+6

## 0.1.3
Topped version for dependencies
9 changes: 5 additions & 4 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -309,17 +309,18 @@ class _HomePageState extends State<HomePage> {
..putCustomField('Charged From', 'Flutter SDK');
// _getReference();
log(charge.reference!);
_chargeCard(charge);
_chargeCard(charge, scanCard: true);
} else {
// Perform transaction/initialize on Paystack server to get an access code
// documentation: https://developers.paystack.co/reference#initialize-a-transaction
charge.accessCode = await _fetchAccessCodeFrmServer(_getReference());
_chargeCard(charge);
_chargeCard(charge, scanCard: true);
}
}

_chargeCard(Charge charge) async {
final response = await plugin.chargeCard(context, charge: charge);
_chargeCard(Charge charge, {required bool scanCard}) async {
final response =
await plugin.chargeCard(context, charge: charge, scanCard: scanCard);
log(response.reference!);
final reference = response.reference;

Expand Down
4 changes: 2 additions & 2 deletions example/macos/Flutter/GeneratedPluginRegistrant.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
import FlutterMacOS
import Foundation

import device_info_plus_macos
import package_info_plus_macos
import device_info_plus
import package_info_plus

func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
DeviceInfoPlusMacosPlugin.register(with: registry.registrar(forPlugin: "DeviceInfoPlusMacosPlugin"))
Expand Down
Loading

0 comments on commit a004fec

Please sign in to comment.