我已经包含了我收到的完整错误消息的屏幕截图.当我尝试将我的应用程序提交到iTunes Connect时会发生这种情况.运行应用程序时,我没有收到任何错误.


我有以下代码来自https://developer.paypal.com/demo/checkout/#/pattern/confirm
代码正在Paypal结帐页面显示,我可以输入我的所有信息.我遇到的问题是onAuthorize()根本没有被调用.即使我完成一个事务,唯一被调用的是onCancel()函数.
注意:我正在使用此处的测试信用卡https://www.paypalobjects.com/en_US/vhelp/paypalmanager_help/credit_card_numbers.htm
paypal.Button.render({
// Set your environment
env: 'sandbox', // sandbox | production
// Create a PayPal app: https://developer.paypal.com/developer/applications/create
client: {
sandbox: 'AY2UxZoOkoWQ0-******',
production: '' // This is not set
},
commit: true, // Set to 'Pay Now'
payment: function() { // Wait for the PayPal button to be clicked
// Make a client-side call to the REST api to create the payment
return paypal.rest.payment.create(this.props.env, this.props.client, {
transactions: [
{
amount: { total: '10.00', currency: 'USD' } …Run Code Online (Sandbox Code Playgroud) 问题已更新
\n\n我如何\xc2\xa0查询2个集合?I\xc2\xa0 有一个愿望清单集合,其中每个愿望清单文档如下所示:
\n\ndocumentID: "some-wishlist-id",\nmodified: "1564061309920",\nproductId: "2tqXaLUDy1IjxLafIu9O",\nuserId: "0uM7Dt286JYK6q8iLFyF4tG9cK53"\nRun Code Online (Sandbox Code Playgroud)\n\n还有一个产品集合,其中每个产品文档如下所示。愿望清单集合中的 ProductId 将是产品集合中的 documentID\xc2\xa0:
\n\ndocumentID: "2tqXaLUDy1IjxLafIu9O",\ndateCreated: "1563820643577",\ndescription: "This is a description for Product 9",\nimages: ["some_image.jpg"],\nisNegotiable: true,\nisSold: false,\nrentPrice: 200,\nsellPrice: 410,\ntitle: "Product 9",\ntotalWishLists: 0,\nuserId: "0uM7Dt286JYK6q8iLFyF4tG9cK53"\nRun Code Online (Sandbox Code Playgroud)\n\n注意:需要明确的是,愿望清单查询应该返回我需要迭代以检索产品的文档列表。
\n\n不确定在这种情况下 I\xc2\xa0 是否需要使用流或 future,但这就是我到目前为止所拥有的:
\n\nFuture<Product> getProduct(String documentId) {\nreturn Firestore.instance\n .collection(APIPath.products())\n .document(documentId)\n .get()\n .then((DocumentSnapshot ds) => Product.fromMap(ds.data));\n}\n\nQuery getWishListByUser(userId) {\n return Firestore.instance\n .collection(APIPath.wishlists())\n .where(\'userId\', isEqualTo: userId);\n}\n\nFuture<List<Product>> getProductsWishList(userId) async {\n List<Product> _products = [];\n\n await getWishListByUser(userId)\n .snapshots()\n .forEach((QuerySnapshot snapshot) {\n snapshot.documents.forEach((DocumentSnapshot snapshot) async {\n …Run Code Online (Sandbox Code Playgroud) 如何使用 ID 列表从集合中获取文档查询?假设我有以下内容:
List<String> someList = ['abc123', 'def456', 'hij789']; // Need to query for these documentIDs
Run Code Online (Sandbox Code Playgroud)
我通常会做以下事情。但这显然行不通,因为我需要查询文档ID。
Query query = Firestore.instance
.collection(APIPath.products())
.where('someField', whereIn: someList);
Run Code Online (Sandbox Code Playgroud) 我在Android Studio上使用Gradle 1.5.0.项目与Gradle同步没有任何问题,但是当我运行应用程序时,我收到以下错误消息
Error:Execution failed for task ':App:mergeDebugResources'.
/Users/Zee/Repos/App/res/drawable/notification.mp3: Error: The filename must end with .xml or .png
Run Code Online (Sandbox Code Playgroud)
使用mp3文件,所以不知道该做什么.任何帮助深表感谢.
firebase ×2
flutter ×2
android ×1
build.gradle ×1
dart ×1
ios ×1
iphone ×1
javascript ×1
paypal ×1
xcode ×1